forked from Spark/ssm-services
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
090a1f6b6a | |||
eb48f0da03 | |||
dabc53e04c | |||
8e9c371ce6 |
|
@ -1,3 +1,3 @@
|
||||||
# ssm-services
|
# ssm-services
|
||||||
|
|
||||||
Examples of services for [ssm](https://git.fleshless.org/ssm)
|
Examples of services for [ssm](https://code.fleshless.org/Spark/ssm)
|
||||||
|
|
|
@ -6,11 +6,7 @@ service_command=( /usr/bin/fsck -A -C -p )
|
||||||
pre_start() {
|
pre_start() {
|
||||||
printf 'Remounting / as read-only...\n'
|
printf 'Remounting / as read-only...\n'
|
||||||
mount / -o remount,ro
|
mount / -o remount,ro
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
printf 'Checking filesystems...\n'
|
printf 'Checking filesystems...\n'
|
||||||
super_start
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_start() {
|
post_start() {
|
||||||
|
|
4
services/zabbix-agent
Executable file
4
services/zabbix-agent
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env ssm
|
||||||
|
|
||||||
|
service_pidfile = /tmp/zabbix_agentd.pid
|
||||||
|
service_command = /usr/bin/sudo -u zabbix-agent /usr/bin/zabbix_agentd -f
|
Loading…
Reference in New Issue
Block a user