mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-22 02:35:23 +03:00
- Modernize APKBUILD and init.d - Adjust license - Add openrc subpkg - Add patch for GCC10
20 lines
432 B
Text
20 lines
432 B
Text
#!/sbin/openrc-run
|
|
|
|
command="/usr/sbin/smsd"
|
|
pidfile="/run/smsd/smsd.pid"
|
|
command_args="-p $pidfile -i ${pidfile%/*}/smsd.working}"
|
|
: ${command_user:=smsd}
|
|
: ${command_group:=smsd}
|
|
: ${cfgfile:=/etc/smsd.conf}
|
|
|
|
depend() {
|
|
after firewall
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath --directory --owner $command_user:$command_group ${pidfile%/*} \
|
|
/var/log/smsd \
|
|
/var/spool/sms/incoming \
|
|
/var/spool/sms/outgoing \
|
|
/var/spool/sms/checked
|
|
}
|