mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-13 00:16:45 +02:00
24 lines
389 B
Bash
24 lines
389 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 $?
|
|
}
|