mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
22 lines
417 B
Bash
22 lines
417 B
Bash
#!/sbin/openrc-run
|
|
description="Initialize Amazon SSM Agent"
|
|
command="/usr/bin/amazon-ssm-agent"
|
|
|
|
start() {
|
|
ebegin "Starting SSM Agent"
|
|
start-stop-daemon --start \
|
|
--chdir ${SSM Agent_path} \
|
|
--exec ${command} ${command_args} \
|
|
-b --make-pidfile \
|
|
--pidfile "${pidfile}"
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping SSM Agent"
|
|
start-stop-daemon --stop \
|
|
--exec ${command} \
|
|
--pidfile "${pidfile}"
|
|
eend $?
|
|
}
|