Compare commits

5 Commits

Author SHA1 Message Date
fbt
d5f37a33b1 fix
Signed-off-by: fbt <fbt@fleshless.org>
2026-06-23 02:00:43 +00:00
fbt
090a1f6b6a this one is tricky
Signed-off-by: fbt <fbt@fleshless.org>
2021-03-05 01:14:21 +03:00
fbt
eb48f0da03 zabbix-agent
Signed-off-by: fbt <fbt@fleshless.org>
2021-03-03 08:49:26 +03:00
fbt
dabc53e04c WHY?!
Signed-off-by: fbt <fbt@fleshless.org>
2020-06-06 17:05:56 +03:00
fbt
8e9c371ce6 fix link
Signed-off-by: fbt <fbt@fleshless.org>
2020-05-12 21:03:25 +03:00
4 changed files with 7 additions and 7 deletions

View File

@@ -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)

View File

@@ -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() {

View File

@@ -5,12 +5,12 @@ service_command='/usr/lib/systemd/systemd-udevd'
cfg_udev_settle_timeout="${cfg_udev_settle_timeout:-60}" cfg_udev_settle_timeout="${cfg_udev_settle_timeout:-60}"
udev.populate_dev() { udev.populate_dev() {
prinft 'Populating /dev with udev...\n' printf 'Populating /dev with udev...\n'
udevadm trigger --type=subsystems --action=add udevadm trigger --type=subsystems --action=add
udevadm trigger --type=devices --action=add udevadm trigger --type=devices --action=add
printf 'Waiting for uevents...\n' 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= udevadm control --property=do_not_run_plug_service=
} }

4
services/zabbix-agent Executable file
View 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