forked from Spark/ssm-services
local configuration should be separate take 2
This commit is contained in:
parent
99533f46c0
commit
09c8c78bf5
1
conf.d/cjdroute.sh
Normal file
1
conf.d/cjdroute.sh
Normal file
|
@ -0,0 +1 @@
|
|||
cjdroute_listen_port='7530'
|
1
conf.d/dhcpcd.sh
Normal file
1
conf.d/dhcpcd.sh
Normal file
|
@ -0,0 +1 @@
|
|||
service_args='-C resolv.conf'
|
5
conf.d/udev.sh
Normal file
5
conf.d/udev.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
# systemd-udevd:
|
||||
#service_command='/usr/lib/systemd/sustemd-udevd'
|
||||
|
||||
# eudev:
|
||||
service_command='/sbin/udevd'
|
4
init.d/mpd
Executable file
4
init.d/mpd
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env watchman
|
||||
|
||||
service_command='/bin/mpd'
|
||||
service_pidfile='/run/mpd.pid'
|
22
init.d/privoxy
Executable file
22
init.d/privoxy
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env watchman
|
||||
|
||||
privoxy_username='privoxy'
|
||||
privoxy_configfile='/etc/privoxy/config'
|
||||
|
||||
service_command='/usr/bin/privoxy'
|
||||
service_pidfile='/run/privoxy.pid'
|
||||
service_args="--pidfile ${service_pidfile} --user ${privoxy_username} ${privoxy_configfile}"
|
||||
|
||||
privoxy::configtest() {
|
||||
"${service_command}" --config-test ${service_args}
|
||||
}
|
||||
|
||||
restart() {
|
||||
privoxy::configtest || {
|
||||
watchman.err "Config test failed, not restarting!"
|
||||
return 1
|
||||
}
|
||||
|
||||
watchman.stop
|
||||
watchman.start
|
||||
}
|
Loading…
Reference in New Issue
Block a user