runsvdir(8) System Manager's Manual runsvdir(8)NAME
runsvdir - starts and monitors a collection of runsv(8) processes
runsvdir [-P] dir [ log ]
dir must be a directory. log is a space holder for a readproctitle log, and must be at least seven characters long or absent.
runsvdir starts a runsv(8) process for each subdirectory, or symlink to a directory, in the services directory dir, up to a limit of 1000
subdirectories, and restarts a runsv(8) process if it terminates. runsvdir skips subdirectory names starting with dots. runsv(8) must be
in runsvdir's PATH.
At least every five seconds runsvdir checks whether the time of last modification, the inode, or the device, of the services directory dir
has changed. If so, it re-scans the service directory, and if it sees a new subdirectory, or new symlink to a directory, in dir, it starts
a new runsv(8) process; if runsvdir sees a subdirectory being removed that was previously there, it sends the corresponding runsv(8)
process a TERM signal, stops monitoring this process, and so does not restart the runsv(8) process if it exits.
If the log argument is given to runsvdir, all output to standard error is redirected to this log, which is similar to the daemontools'
readproctitle log. To see the most recent error messages, use a process-listing tool such as ps(1). runsvdir writes a dot to the read-
proctitle log every 15 minutes so that old error messages expire.
OPTIONS -P use setsid(2) to run each runsv(8) process in a new session and separate process group.
If runsvdir receives a TERM signal, it exits with 0 immediately.
If runsvdir receives a HUP signal, it sends a TERM signal to each runsv(8) process it is monitoring and then exits with 111.
SEE ALSO sv(8), runsv(8), runsvchdir(8), runit(8), runit-init(8), chpst(8), svlogd(8), utmpset(8), setsid(2)
Gerrit Pape <email@example.com>
I have a requirement as follows. My Input file is as follows.
1111,2,2,400,0005... (6 Replies)
I have this in my .bashrc file:
alias rm='rm -i'
Problem is, there are 3 files that I remove many times a day and would like this command to ignore these 3 files. In other words, prompt me on everything EXCEPT these 3 files.
Is this possible?
Also in... (16 Replies)
i am not clear at some places i saw that assigning a env var with colon ':' like
here you can find : and a . and again :
could some one explain how it works...
see all is starting from root directory,
how : is used and... (6 Replies)
Can anybody help with this?
When I log into my user account on my box via ssh and then instantly perform an env command I see that my path has been set as follows:
My user account uses the ksh shell. In my home directory there is no... (7 Replies)
If PATH is set to ../bin:../sbin:/usr/bin:/usr/local/bin (chunk of path string). Sometime when I try to execute ls command it says ../bin/ls not found. According to my understanding "ls" should be searched in all the path varibales that we set in the PATH varaibale.
Is there any reason for the... (5 Replies)
I am first year year student .. and i need help
i tried to work with PostgreSQL but when i open the terminal, i face problem in how to reach to PostgreSQL . always i get message it says that " can not find server " .
so what shall i do please .....:( (9 Replies)
I have a program called abc installed in /usr/local/bin.
My path is as follows:
# echo $PATH
However, when entering the abc command, the following error appears:
abc: Command not found
When... (7 Replies)
ga016dgf -> /usr/bin/last | cut -c1-3
Invalid record size. Unable to continue ...
ga016dgf -> uname -a
HP-UX ga016dgf B.11.31 U ia64 1246079591 unlimited-user license
Video tutorial on how to use code tags in The UNIX and Linux Forums. (4 Replies)
I have the following contents in a file
---- CRITICAL: altered for /usr/bin/bin1 ---- OK: /usr/sbin/bin2 result fine ---- OK: /usr/sbin/bin3 result fine ---- CRITICAL: altered for /usr/bin/bin4 ---- OK: /usr/bin/bin5 result fine ---- OK: /usr/bin/bin6 result fine ---- CRITICAL: altered for... (9 Replies)
I have a script.sh running, i need to move his generated file to another path and restart it every 24h.
is there a way to restart it from a script in a dynamic way without create a duplicate process?
mv file to /path
script.sh & many thanks for your help (7 Replies)
I ssh in and am trying to add a directory permanently to $PATH in centos 7 and having issues. My current $PATH is
but when I do a sudo nano ~/.bashrc
# User specific aliases and functions
alias... (7 Replies)