Blob


1 version=pmwiki-2.3.20 ordered=1 urlencoded=1
2 agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15
3 author=geze
4 charset=UTF-8
5 csum=
6 ctime=1627916572
7 host=122.148.251.191
8 name=Openbsd.Rcctl
9 rev=14
10 targets=
11 text=[[http://man.openbsd.org/rcctl|rcctl(8)]] is a utility to manage @@/etc/rc.conf.local@@, for running, killing and managing system services.%0athankfully since rcctl is part of base system, nothing is needed to install it.%0a%0a!!Commands%0a!!!ls%0a%0a@@rcctl ls@@ can be used for list-ing kinds of services%0aexamples:%0a%0a[@%0a$ doas rcctl ls failed%0a$ doas rcctl ls on%0a@]%0a%0a!!!check%0ato check if a service is still running or not, use @@rcctl check@@%0afor example:%0a[@%0a$ doas rcctl check vmd%0a@]%0a%0aif vmd is running:%0a[@%0avmd(ok)%0a@]%0a%0aotherwise:%0a[@%0avmd(failed)%0a@]%0a%0a!!!enable%0a@@rcctl enable@@ enables services, making them executed on next boot.%0ait doesn't show anything after running.%0asee start for starting a service without rebooting.%0a[@%0a$ doas rcctl enable xenodm%0a@]%0a%0a!!!disable%0a@@rcctl disable@@ disables services, and don't let them to run on next boot. you might want to stop these as well.%0a[@%0a$ doas rcctl disable xenodom%0a@]%0a%0a!!!start%0a@@rcctl start@@ is for starting services which are allowed to run.%0aif you try to run a disabled service, following will happen:%0a[@%0a$ doas rcctl start sndiod%0a/etc/rc.d/sndiod: need -f to force start since sndiod_flags=NO%0a@]%0a%0ayou can enable it's service, or use @@rcctl start -f@@ to start it without enabling it.%0a%0ain both cases, you will see this:%0a[@%0asndiod(ok)%0a@]%0a%0a!!!stop%0a@@rcctl stop@@ stops running services, if a service is not running or not enabled, it won't say anything.%0a[@%0a$ doas rcctl stop sndiod%0asndiod(ok)%0a@]%0a%0a!!!restart%0a@@rcctl restart@@ it first stop services, then starts them again (thats why it shows two). this is useful for when you have updated configurations. however, you most use reload always. (unless service is stopped or it doesn't support reload)%0a[@%0a$ doas rcctl restart smtpd%0asmtpd(ok)%0asmtpd(ok)%0a@]%0a%0a!!!reload%0a@@rcctl reload@@ is used to tell a service to reload it's configuration files. it's useful for places such as an irc server which restarting will cause all users getting disconnected. not all services support this action.%0ait will send a signal to called service in order to reload it:%0a[@%0a$ doas rcctl reload nsd%0ansd(ok)%0a@]%0a%0a!!!set%0asome daemons ship with custom flags to change their functionality instead of a config file, you can change them with @@flags@@ if they are enabled.%0aapmd is a example of following, you can set @@-H@@ to apmd to set maximum performance mode on apmd%0a[@%0a$ doas rcctl set apmd flags -H%0a@]%0a%0a!!!get%0ayou can get information from services (no matter if they are running or not)%0ausing @@rcctl get@@:%0a[@%0a$ rcctl get pflogd%0apflogd_class=daemon%0apflogd_flags=%0apflogd_logger=%0apflogd_rtable=0%0apflogd_timeout=30%0apflogd_user=root%0a@]%0a%0a!! See Also%0a[[http://man.openbsd.org/rcctl|rcctl(8) man page]],%0a[[http://man.openbsd.org/rc.d|rc.d(8) man page]] and%0a[[http://man.openbsd.org/rc.conf.local|rc.conf.local(8) man page]]%0a
12 time=1710008163
13 author:1710008163=geze
14 diff:1710008163:1706113675:minor=85,86c85,86%0a%3c some daemons ship with custom flags to change their functionality instead of a config file, you can change them with @@flags@@ if they are enabled.%0a%3c apmd is a example of following, you can set @@-H@@ to apmd to set maximum performance mode on apmd%0a---%0a> some deamons ship with custom flags to change their functionality instad of a config file, you can change them with @@flags@@ if they are enabled.%0a> apmd is a example of following, you can set @@-H@@ to apmd to set maximum perforamce mode on apmd%0a
15 host:1710008163=122.148.251.191
16 author:1706113675=mkf
17 diff:1706113675:1706113609:=12d11%0a%3c $ doas rcctl ls on%0a14,17d12%0a%3c %0a%3c !!!check%0a%3c to check if a service is still running or not, use @@rcctl check@@%0a%3c for example:%0a19c14%0a%3c $ doas rcctl check vmd%0a---%0a> $ doas rcctl ls on%0a22c17,19%0a%3c if vmd is running:%0a---%0a> !!!check%0a> to check if a service is still running or not, use @@rcctl check@@%0a> for example:%0a24c21%0a%3c vmd(ok)%0a---%0a> $ doas rcctl check vmd%0a27c24%0a%3c otherwise:%0a---%0a> if vmd is running:%0a29c26%0a%3c vmd(failed)%0a---%0a> vmd(ok)%0a31a29,33%0a> otherwise:%0a> [@%0a> vmd(failed)%0a> @]%0a> %0a63c65%0a%3c [@%0a---%0a> [@ %0a
18 host:1706113675=198.251.82.194
19 author:1706113609=mkf
20 diff:1706113609:1706113562:minor=45c45%0a%3c $ doas rcctl disable xenodom%0a---%0a> rcctl disable xenodom%0a66c66%0a%3c $ doas rcctl stop sndiod%0a---%0a> $doas rcctl stop sndiod%0a73c73%0a%3c $ doas rcctl restart smtpd%0a---%0a> $doas rcctl restart smtpd%0a105d104%0a%3c %0a
21 host:1706113609=198.251.82.194
22 author:1706113562=mkf
23 csum:1706113562=xendm → xenodm, thanks napca.
24 diff:1706113562:1652075627:minor=45c45%0a%3c rcctl disable xenodom%0a---%0a> rcctl disable xendom%0a
25 host:1706113562=198.251.82.194
26 author:1652075627=mkf
27 diff:1652075627:1652075599:minor=4c4%0a%3c !!Commands%0a---%0a> !!commands%0a
28 host:1652075627=2.178.155.135
29 author:1652075599=mkf
30 diff:1652075599:1652075566:=106,107c106,107%0a%3c [[http://man.openbsd.org/rcctl|rcctl(8) man page]],%0a%3c [[http://man.openbsd.org/rc.d|rc.d(8) man page]] and%0a---%0a> [[http://man.openbsd.org/rcctl|rcctl(8) man page]]%0a> [[http://man.openbsd.org/rc.d|rc.d(8) man page]]%0a
31 host:1652075599=2.178.155.135
32 author:1652075566=mkf
33 diff:1652075566:1652074185:=1c1%0a%3c [[http://man.openbsd.org/rcctl|rcctl(8)]] is a utility to manage @@/etc/rc.conf.local@@, for running, killing and managing system services.%0a---%0a> rcctl(8) is a utility to manage @@/etc/rc.conf.local@@, for running, killing and managing system services.%0a104,108c104%0a%3c @]%0a%3c !! See Also%0a%3c [[http://man.openbsd.org/rcctl|rcctl(8) man page]]%0a%3c [[http://man.openbsd.org/rc.d|rc.d(8) man page]]%0a%3c [[http://man.openbsd.org/rc.conf.local|rc.conf.local(8) man page]]%0a---%0a> @]%0a\ No newline at end of file%0a
34 host:1652075566=2.178.155.135
35 author:1652074185=mkf
36 diff:1652074185:1652074137:minor=7c7%0a%3c @@rcctl ls@@ can be used for list-ing kinds of services%0a---%0a> @@rcctl ls@@ can used for list-ing kinds of services%0a18c18%0a%3c to check if a service is still running or not, use @@rcctl check@@%0a---%0a> @@rcctl check@@ can used to check if a service is still running or not.%0a
37 host:1652074185=2.178.155.135
38 author:1652074137=mkf
39 diff:1652074137:1652073953:=
40 host:1652074137=2.178.155.135
41 author:1652073953=mkf
42 diff:1652073953:1652073927:minor=86c86%0a%3c !!!set%0a---%0a> !!!flag%0a
43 host:1652073953=2.178.155.135
44 author:1652073927=mkf
45 diff:1652073927:1629666468:minor=88c88%0a%3c apmd is a example of following, you can set @@-H@@ to apmd to set maximum perforamce mode on apmd%0a---%0a> apmd is a example of following, you can set @@-H@ to apmd to set maximum perforamce mode on apmd%0a
46 host:1652073927=2.178.155.135
47 author:1629666468=mkf
48 diff:1629666468:1627916763:=1c1%0a%3c rcctl(8) is a utility to manage @@/etc/rc.conf.local@@, for running, killing and managing system services.%0a---%0a> rcctl is a utility to manage @@/etc/rc.conf.local@@, for running, killing and managing system services.%0a3a4%0a> %0a4a6%0a> %0a
49 host:1629666468=198.251.81.133
50 author:1627916763=mkf
51 diff:1627916763:1627916572:=
52 host:1627916763=198.251.81.133
53 author:1627916572=mkf
54 diff:1627916572:1627916572:=1,106d0%0a%3c rcctl is a utility to manage @@/etc/rc.conf.local@@, for running, killing and managing system services.%0a%3c thankfully since rcctl is part of base system, nothing is needed to install it.%0a%3c %0a%3c %0a%3c !!commands%0a%3c %0a%3c !!!ls%0a%3c %0a%3c @@rcctl ls@@ can used for list-ing kinds of services%0a%3c examples:%0a%3c %0a%3c [@%0a%3c $ doas rcctl ls failed%0a%3c @]%0a%3c [@%0a%3c $ doas rcctl ls on%0a%3c @]%0a%3c %0a%3c !!!check%0a%3c @@rcctl check@@ can used to check if a service is still running or not.%0a%3c for example:%0a%3c [@%0a%3c $ doas rcctl check vmd%0a%3c @]%0a%3c %0a%3c if vmd is running:%0a%3c [@%0a%3c vmd(ok)%0a%3c @]%0a%3c %0a%3c otherwise:%0a%3c [@%0a%3c vmd(failed)%0a%3c @]%0a%3c %0a%3c !!!enable%0a%3c @@rcctl enable@@ enables services, making them executed on next boot.%0a%3c it doesn't show anything after running.%0a%3c see start for starting a service without rebooting.%0a%3c [@%0a%3c $ doas rcctl enable xenodm%0a%3c @]%0a%3c %0a%3c !!!disable%0a%3c @@rcctl disable@@ disables services, and don't let them to run on next boot. you might want to stop these as well.%0a%3c [@%0a%3c rcctl disable xendom%0a%3c @]%0a%3c %0a%3c !!!start%0a%3c @@rcctl start@@ is for starting services which are allowed to run.%0a%3c if you try to run a disabled service, following will happen:%0a%3c [@%0a%3c $ doas rcctl start sndiod%0a%3c /etc/rc.d/sndiod: need -f to force start since sndiod_flags=NO%0a%3c @]%0a%3c %0a%3c you can enable it's service, or use @@rcctl start -f@@ to start it without enabling it.%0a%3c %0a%3c in both cases, you will see this:%0a%3c [@%0a%3c sndiod(ok)%0a%3c @]%0a%3c %0a%3c !!!stop%0a%3c @@rcctl stop@@ stops running services, if a service is not running or not enabled, it won't say anything.%0a%3c [@ %0a%3c $doas rcctl stop sndiod%0a%3c sndiod(ok)%0a%3c @]%0a%3c %0a%3c !!!restart%0a%3c @@rcctl restart@@ it first stop services, then starts them again (thats why it shows two). this is useful for when you have updated configurations. however, you most use reload always. (unless service is stopped or it doesn't support reload)%0a%3c [@%0a%3c $doas rcctl restart smtpd%0a%3c smtpd(ok)%0a%3c smtpd(ok)%0a%3c @]%0a%3c %0a%3c !!!reload%0a%3c @@rcctl reload@@ is used to tell a service to reload it's configuration files. it's useful for places such as an irc server which restarting will cause all users getting disconnected. not all services support this action.%0a%3c it will send a signal to called service in order to reload it:%0a%3c [@%0a%3c $ doas rcctl reload nsd%0a%3c nsd(ok)%0a%3c @]%0a%3c %0a%3c !!!flag%0a%3c some deamons ship with custom flags to change their functionality instad of a config file, you can change them with @@flags@@ if they are enabled.%0a%3c apmd is a example of following, you can set @@-H@ to apmd to set maximum perforamce mode on apmd%0a%3c [@%0a%3c $ doas rcctl set apmd flags -H%0a%3c @]%0a%3c %0a%3c !!!get%0a%3c you can get information from services (no matter if they are running or not)%0a%3c using @@rcctl get@@:%0a%3c [@%0a%3c $ rcctl get pflogd%0a%3c pflogd_class=daemon%0a%3c pflogd_flags=%0a%3c pflogd_logger=%0a%3c pflogd_rtable=0%0a%3c pflogd_timeout=30%0a%3c pflogd_user=root%0a%3c @]%0a\ No newline at end of file%0a
55 host:1627916572=198.251.81.133