@@ -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
|
||||
|
||||
Reference in New Issue
Block a user