Re: meta rc-scripts [Re: CHANGE net/samba - drop meta rc-script]

2024-07-03 Thread Solene Rapenne
On Wed, Jul 03, 2024 at 11:01:41AM GMT, Stuart Henderson wrote: > On 2024/07/02 20:57, Bjorn Ketelaars wrote: > > The meta rc-script for Samba does not play nice with 'rcctl ls rogue'. > > When a meta script is used, services started by the child scripts are > > seen as rogue [0]. > > There are 5

Re: meta rc-scripts [Re: CHANGE net/samba - drop meta rc-script]

2024-07-03 Thread Ian McWilliam
> On 3 Jul 2024, at 8:01 pm, Stuart Henderson wrote: > > On 2024/07/02 20:57, Bjorn Ketelaars wrote: >> The meta rc-script for Samba does not play nice with 'rcctl ls rogue'. >> When a meta script is used, services started by the child scripts are >> seen as rogue [0]. > > There are 5 others

meta rc-scripts [Re: CHANGE net/samba - drop meta rc-script]

2024-07-03 Thread Stuart Henderson
On 2024/07/02 20:57, Bjorn Ketelaars wrote: > The meta rc-script for Samba does not play nice with 'rcctl ls rogue'. > When a meta script is used, services started by the child scripts are > seen as rogue [0]. There are 5 others of these, and they do encapsulate knowledge of which order the daemon

Re: Dealing with daemons that don't behave like daemons in rc scripts

2023-12-09 Thread Edd Barrett
On Sat, Dec 09, 2023 at 01:03:31PM +, Edd Barrett wrote: > (If we are fine with the general approach, and if this is something that we > are > going to need to do for other ports, perhaps it would be better for rc.d to > have some kind of built-in support for using a daemon-wrapper? I don't kn

Dealing with daemons that don't behave like daemons in rc scripts

2023-12-09 Thread Edd Barrett
Hi, I'm in the middle of this ongoing saga to get audio/navidrome to be startable at boot time via an rc script. Despite the moaning below, I do like it as a music player/streamer. The problem: navidrome doesn't behave like a daemon: - it doesn't setsid(2) - it doesn't background itself - it

Re: MODPY_BIN vs pexp in rc scripts

2022-01-21 Thread Marc Espie
On Fri, Jan 21, 2022 at 03:55:43PM +0100, Antoine Jacoutot wrote: > On Fri, Jan 21, 2022 at 03:21:04PM +0100, Marc Espie wrote: > > landry@ remarked that MODPY_BIN is probably > > too specific when updating /etc/rc scripts from ports. > > > > (and it's also

Re: MODPY_BIN vs pexp in rc scripts

2022-01-21 Thread Antoine Jacoutot
On Fri, Jan 21, 2022 at 03:21:04PM +0100, Marc Espie wrote: > landry@ remarked that MODPY_BIN is probably > too specific when updating /etc/rc scripts from ports. > > (and it's also wrong, because pexp is a regexp) > > It should be trivial to add a > MODPY_PEXP > v

MODPY_BIN vs pexp in rc scripts

2022-01-21 Thread Marc Espie
landry@ remarked that MODPY_BIN is probably too specific when updating /etc/rc scripts from ports. (and it's also wrong, because pexp is a regexp) It should be trivial to add a MODPY_PEXP variable specifically for that, to facilitate restarts after an upgrade The question is: what shoul

Re: Can not start Buildbot by rc scripts, but 'buildbot start master' works (built from -current)

2020-08-28 Thread Martin
Hi Landry, Buildbot won't start from rc scripts anyway during system boot process automatically. I tried to run it by setting: rcctl enable buildbot ... stating network daemons: sshd bgpd relayd dhcpd smtpd vmd sndiod. starting package daemons: buildbot(failed). ... But it runs success

Re: Can not start Buildbot by rc scripts, but 'buildbot start master' works (built from -current)

2020-08-28 Thread Stuart Henderson
On 2020/08/28 11:55, Landry Breuil wrote: > On Fri, Aug 28, 2020 at 09:46:31AM +, Martin wrote: > > Hi Landry, > > > > Buildbot won't start from rc scripts anyway during system boot process > > automatically. > > I tried to run it by s

Re: Can not start Buildbot by rc scripts, but 'buildbot start master' works (built from -current)

2020-08-28 Thread Landry Breuil
On Fri, Aug 28, 2020 at 09:46:31AM +, Martin wrote: > Hi Landry, > > Buildbot won't start from rc scripts anyway during system boot process > automatically. > I tried to run it by setting: > > rcctl enable buildbot > > ... > stating network daemons: sshd

Re: Can not start Buildbot by rc scripts, but 'buildbot start master' works (built from -current)

2020-07-23 Thread Martin
I confirm buildbot-worker works since automat has been updated to py-automat-0.8.0. Great job, Landry! Martin ‐‐‐ Original Message ‐‐‐ On Wednesday, July 22, 2020 7:18 PM, Landry Breuil wrote: > On Wed, Jul 22, 2020 at 12:59:44PM +, Martin wrote: > > > It seems latest py-automat-2

Re: Can not start Buildbot by rc scripts, but 'buildbot start master' works (built from -current)

2020-07-22 Thread Landry Breuil
On Wed, Jul 22, 2020 at 12:59:44PM +, Martin wrote: > It seems latest py-automat-20.2.0 should be used with updated > py-setuptools-49.x to run buildbot-worker correctly. good catch, i think 0.8.0 is enough per https://github.com/buildbot/buildbot/commit/a89eddb4acfdaa23bcb53806674a960e28cfcc

Re: Can not start Buildbot by rc scripts, but 'buildbot start master' works (built from -current)

2020-07-22 Thread Martin
It seems latest py-automat-20.2.0 should be used with updated py-setuptools-49.x to run buildbot-worker correctly. Martin ‐‐‐ Original Message ‐‐‐ On Monday, July 20, 2020 8:45 PM, Martin wrote: > Master has been created in /var/buildbot by: > > buildbot create-master master > buildbot

Re: Can not start Buildbot by rc scripts, but 'buildbot start master' works (built from -current)

2020-07-22 Thread Martin
Landry, thanks for reply. Buildbot now starts from rc scripts successfully. It was /var/buildbot folder contents permissions problem. But now I'm stuck with buildbot-worker built from -current. I've just created a worker by commands from README: su -m _buildslave -c "buildbo

Re: Can not start Buildbot by rc scripts, but 'buildbot start master' works (built from -current)

2020-07-21 Thread Landry Breuil
On Mon, Jul 20, 2020 at 08:45:53PM +, Martin wrote: > Master has been created in /var/buildbot by: > > buildbot create-master master > buildbot start master > works. > > But I can't start Buildbot by > rcctl start buildbot > > Any suggestions? rcctl -d start buildbot, and look at /var/build

Can not start Buildbot by rc scripts, but 'buildbot start master' works (built from -current)

2020-07-20 Thread Martin
Master has been created in /var/buildbot by: buildbot create-master master buildbot start master works. But I can't start Buildbot by rcctl start buildbot Any suggestions? Martin

Re: isc-dhcp: add rc scripts, etc.

2014-10-12 Thread Jakob Schlyter
On 11 okt 2014, at 14:42, Stuart Henderson wrote: > OK? (Jakob, do you want to remain listed as maintainer of this?) Nah, you can remove me. jakob

isc-dhcp: add rc scripts, etc.

2014-10-11 Thread Stuart Henderson
Adds rc scripts for isc-dhcpd, isc-dhcrelay. Adds a dedicated userid for the isc-dhcpd script. Turn off groff, there are now only whitespace changes. OK? (Jakob, do you want to remain listed as maintainer of this?) Index: infrastructure/db/user.list

Re: Deconflict rc scripts of base httpd and apache-httpd-openbsd

2014-07-27 Thread Stuart Henderson
ml 26 Jul 2014 19:08:42 - >@@ -65,6 +65,7 @@ > 2014/07/16 - lynx(1) moved to ports >2014/07/22 - [ports] Increased file descriptor >use in KDE4 >2014/07/23 - Changes to /etc infrastructure >+2014/07/26 - rc scripts of both apache >webservers renamed > > &

Re: Deconflict rc scripts of base httpd and apache-httpd-openbsd

2014-07-26 Thread Matthias Kilian
anges to /etc infrastructure +2014/07/26 - rc scripts of both apache webservers renamed @@ -694,6 +695,23 @@ additional log sockets in most cases, so removed: syslogd_flags="${syslogd_flags} -a /path/to/dev/log" + + + +2014/07/26 - [ports] rc scripts of both apache webse

Deconflict rc scripts of base httpd and apache-httpd-openbsd

2014-07-26 Thread Matthias Kilian
2014/07/22 - [ports] Increased file descriptor use in KDE4 2014/07/23 - Changes to /etc infrastructure +2014/07/26 - rc scripts of both apache webservers renamed @@ -694,6 +695,23 @@ additional log sockets in most cases, so removed: syslogd_flags="${syslogd_flags} -a /

Re: rc scripts

2014-07-03 Thread Ian McWilliam
On 3/07/2014 8:29 PM, Craig R. Skinner wrote: On 2014-07-03 Thu 16:23 PM |, Ian McWilliam wrote: OK. Samba4 contains the /usr/local/bin/samba which is the full blown Active Directory Server. The RC script for that (when I write it) will need checks to make sure that smbd / nmbd / winbindd are

Re: rc scripts

2014-07-03 Thread Craig R. Skinner
On 2014-07-03 Thu 14:13 PM |, Ian McWilliam wrote: > > Secondly is it acceptable to create a common rc script to hold common subs > used amongst multiple rc > script for a port, eg samba.subr that will be used by smbd and nmbd rc > scripts? . /usr/local/libexec/samba-control ?

Re: rc scripts

2014-07-03 Thread Craig R. Skinner
On 2014-07-03 Thu 16:23 PM |, Ian McWilliam wrote: > > OK. Samba4 contains the /usr/local/bin/samba which is the full blown Active > Directory Server. > The RC script for that (when I write it) will need checks to make sure that > smbd / nmbd / winbindd are > not running as those daemons are no

Re: rc scripts

2014-07-03 Thread Stuart Henderson
On 2014/07/03 16:23, Ian McWilliam wrote: > OK, in that case, common functions will be duplicated 3 times in each > of the smbd, nmbd, winbindd rc scripts. rc scripts shouldn't be complicated/long enough that the duplication is a problem :)

Re: rc scripts

2014-07-02 Thread Antoine Jacoutot
/rc.d/smbd check' ... instead. > > > Secondly is it acceptable to create a common rc script to hold common > > subs used amongst multiple rc > > > script for a port, eg samba.subr that will be used by smbd and nmbd rc > > scripts? > > > > No, the on

Re: rc scripts

2014-07-02 Thread Ian McWilliam
bes the scenarios that the samba4 stuff will give us. > > Secondly is it acceptable to create a common rc script to hold common > subs used amongst multiple rc > > script for a port, eg samba.subr that will be used by smbd and nmbd rc > scripts? > > No, the only time

Re: rc scripts

2014-07-02 Thread Antoine Jacoutot
nnot start samba if it's already running? If so, rc_check() does what you want. If you meant something else, please elaborate :-) > Secondly is it acceptable to create a common rc script to hold common subs > used amongst multiple rc > script for a port, eg samba.subr that will

rc scripts

2014-07-02 Thread Ian McWilliam
[[ $? == 0 ]]; then rc_err "$0: Cannot run while AD Server Running" fi } Secondly is it acceptable to create a common rc script to hold common subs used amongst multiple rc script for a port, eg samba.subr that will be used by smbd and nmbd rc scripts? Any thoughts / ideas a

rc scripts for ejabberd and prosody

2011-12-07 Thread viq
Those need more love, but I've been unable to give it to them recently so I'm sending to the list, maybe someone will manage to push it further and update with changes that were made in the mean time to our tree. My work is available in https://github.com/jasperla/openbsd-wip/tree/master/net/ejabbe

Re: rc scripts

2011-10-13 Thread Antoine Jacoutot
On Fri, 14 Oct 2011, frantisek holop wrote: > hmm, on Thu, Oct 13, 2011 at 11:49:32PM +0200, Antoine Jacoutot said that > > On Thu, 13 Oct 2011, frantisek holop wrote: > > > > > also, some ports have executable pkg/*.rc file, some dont. > > > what's the policy on that? > > > > What do you mean?

Re: rc scripts

2011-10-13 Thread frantisek holop
hmm, on Thu, Oct 13, 2011 at 11:49:32PM +0200, Antoine Jacoutot said that > On Thu, 13 Oct 2011, frantisek holop wrote: > > > also, some ports have executable pkg/*.rc file, some dont. > > what's the policy on that? > > What do you mean? -rwxr-xr-x 1 root wheel 267 Apr 9 2011 /usr/ports/www

Re: rc scripts

2011-10-13 Thread Antoine Jacoutot
On Thu, 13 Oct 2011, frantisek holop wrote: > also, some ports have executable pkg/*.rc file, some dont. > what's the policy on that? What do you mean? > now on to my problem :] > but whenever i make make update-plist after make fake, i get: > > ===> Updating plist for tinyproxy-1.8.3 > Sca

rc scripts

2011-10-13 Thread frantisek holop
hi there, i am confused about the rc scripts. existing ports have pkg/daemon.rc files and a @rcscript ${RCDIR}/daemon line in PLIST pkg_create(1) says: @rcscript filename Script for the /etc/rc.d framework. Contrary to @file, absolute paths are okay, e.g

New tomcat diff (rc scripts)

2011-07-22 Thread David Coppa
The following diff add a rc script and zap some stuff that now has become useless. thoroughly tested; have a look at it. ciao, David Index: v5/Makefile === RCS file: /cvs/ports/www/tomcat/v5/Makefile,v retrieving revision 1.17 diff