Home | Mirror | Search

7. sv - control and manage services monitored by runsv

services directory /etc/service/

$ sudo sv start git-daemon
ok: run: git-daemon: (pid 10323) 1s

$ sudo sv restart git-daemon
ok: run: git-daemon: (pid 10327) 1s
		
$ sudo sv stop git-daemon
ok: down: git-daemon: 1s, normally up
		

7.1. runsv

$ sudo runsv git-daemon
			

7.2. runsvdir

運行/etc/service目錄下的所有服務

			
$sudo runsvdir /etc/service &
			
			
comments powered by Disqus