forked from Spark/ssm-services
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d5f37a33b1 | |||
| 090a1f6b6a | |||
| eb48f0da03 | |||
| dabc53e04c | |||
| 8e9c371ce6 |
@@ -1,3 +1,3 @@
|
||||
# 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() {
|
||||
printf 'Remounting / as read-only...\n'
|
||||
mount / -o remount,ro
|
||||
}
|
||||
|
||||
start() {
|
||||
printf 'Checking filesystems...\n'
|
||||
super_start
|
||||
}
|
||||
|
||||
post_start() {
|
||||
|
||||
@@ -5,12 +5,12 @@ service_command='/usr/lib/systemd/systemd-udevd'
|
||||
cfg_udev_settle_timeout="${cfg_udev_settle_timeout:-60}"
|
||||
|
||||
udev.populate_dev() {
|
||||
prinft 'Populating /dev with udev...\n'
|
||||
printf 'Populating /dev with udev...\n'
|
||||
udevadm trigger --type=subsystems --action=add
|
||||
udevadm trigger --type=devices --action=add
|
||||
|
||||
printf 'Waiting for uevents...\n'
|
||||
udevadm settle --timeout=${cfg_udev_settle_timeout}
|
||||
udevadm settle "--timeout=${cfg_udev_settle_timeout}"
|
||||
udevadm control --property=do_not_run_plug_service=
|
||||
}
|
||||
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user