View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: runit level 2
PostPosted: Wed Mar 28, 2012 9:13 am 
Offline
Joined: Sat Nov 05, 2005 4:37 am
Posts: 191
Location: Cornwall - uk
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?

_________________
--
stinga

as of 17-May-2018
R8.2 - sort of working.
MB: gigabyte GA-P43-ES3G | RAM: 2GB
VGA: PNY Nvidia GT240 1GB
4 x Technisat skystar 2 dvb | 1 x TBS6981 dvb-s2
pata: 1x300Gb | sata: 2x1Tb 2x2Tb
Problems:
TBS6981 Does not work.


Top
 Profile  
 
 Post subject: Re: runit level 2
PostPosted: Wed Mar 28, 2012 5:45 pm 
Offline
Joined: Mon Dec 24, 2007 9:47 am
Posts: 535
Location: Ottawa, Canada
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.


Top
 Profile  
 
 Post subject: Re: runit level 2
PostPosted: Wed Aug 29, 2012 1:21 pm 
Offline
Joined: Tue Feb 14, 2006 8:48 pm
Posts: 22
Location: San Diego, CA USA
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


Top
 Profile  
 
 Post subject: Re: runit level 2
PostPosted: Wed Aug 29, 2012 3:27 pm 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location: SC
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.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: Google [Bot] and 92 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu