LinHES Forums
http://forum.linhes.org/

runit level 2
http://forum.linhes.org/viewtopic.php?f=21&t=22562
Page 1 of 1

Author:  stinga [ Wed Mar 28, 2012 9:13 am ]
Post subject:  runit level 2

My runit level 2 looks like
Code:
[root@mythtv runit]# pwd
/etc/runit
[root@mythtv runit]# cat 2
#!/bin/sh

PATH=/bin:/sbin:/usr/bin:/usr/sbin

#runsvchdir default >/dev/null

exec env - PATH=$PATH \
runsvdir -P /service 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'


I get this...
Code:

root       931     1  0 Mar26 ?        00:00:14 runsvdir -P /service log: og/./run: file does not exist?runsv mythbackend: fatal: unable to start log/./run: file does not exist?runsv mythbackend: fatal: unable to start log/./run: file does not exist?runsv mythbackend: fatal: unable to start log/./run: file does not exist?runsv mythbackend: fatal: unable to start log/./run: file does not exist?runsv mythbackend: fatal: unable to start log/./run: file does not exist?

Author:  christ [ Wed Mar 28, 2012 5:45 pm ]
Post subject:  Re: runit level 2

That looks like a bug in 7.2. If you are at 7.2 then pacman -Syu should pick up a handful of packages one of which fixes this.

Author:  gwirth [ Wed Aug 29, 2012 1:21 pm ]
Post subject:  Re: runit level 2

This bug is back in LinHES 7.4. My system started as LinHES 7.2, then upgraded to LinHES 7.3 via scripts and finally to 7.4.

I ran "pacmac -Syu" and it told me that my system is fully up to date.

I do notice some strange permissions on the /etc/sv/mythbackend/log directory:

Code:
[gus@mythtv mythbackend]$ ls -l
total 16
-rwxr-xr-x 1 root   root  1080 Jan  3  2012 finish
drwxr-xr-x 3 mythtv users 4096 Jul 23 15:06 log
-rwxr-xr-x 1 root   root  1438 May  1 16:06 run
drwxr-xr-x 2 root   root  4096 Aug 29 10:45 supervise


The date on the log folder is the date I upgraded to LinHES 7.3. Everything else in all the directories has an uid:gid of root:root.
Poking around even more and comparing the mythbackend service to other services that have logging, the log directory doesn't have a "run" script. For example, the acpid and frontend services both have a "run" script in their log directory.

So as a test I copied the "run" script from the frontend service and changed the tag to mythbackend and rebooted. Now all is happy :)

Gus

Author:  brfransen [ Wed Aug 29, 2012 3:27 pm ]
Post subject:  Re: runit level 2

The mythbackend log dir isn't needed and should have been removed in one of the upgrades. You can just delete it.

As for acpid and frontend you can sudo chmod root:root the log dirs. Or remove them and reinstall runit-scripts.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/