Better examples

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2026-11-27 16:14:30 +00:00
parent fd658f7545
commit f74df5962e
11 changed files with 152 additions and 25 deletions
+10 -6
View File
@@ -1,9 +1,13 @@
#!/usr/bin/env ssm
service_type = oneshot
service_command = /etc/rc.local
# /etc/rc.local — a oneshot service that runs whatever the system admin
# drops there. Missing or non-executable files are not an error; the
# system may legitimately have no rc.local.
pre_start() {
# Do nothing, successfully, if /etc/rc.local is not executable.
[[ -x "/etc/rc.local" ]] || die 0
}
service_oneshot = yes
if [[ -x /etc/rc.local ]]; then
service_command = /etc/rc.local
else
service_command = /bin/true
fi