mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-29 21:32:22 +01:00
25 lines
388 B
Bash
25 lines
388 B
Bash
#!/sbin/openrc-run
|
|
|
|
name="tuptime"
|
|
command="/usr/bin/tuptime"
|
|
command_user="tuptime"
|
|
command_args="-q"
|
|
|
|
depend() {
|
|
need localmount
|
|
after bootmisc
|
|
after clock
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping ${name}"
|
|
su ${command_user} -s /bin/sh -c "${command} ${command_args} -g"
|
|
eend $?
|
|
}
|
|
|
|
status() {
|
|
ebegin "Status ${name}"
|
|
su ${command_user} -s /bin/sh -c "${command} ${command_args}"
|
|
eend $?
|
|
}
|