1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 02:35:23 +03:00
aports/community/smstools/smstools.initd
Leonardo Arena 665b2d565b community/smstools: fixes #12200
- Modernize APKBUILD and init.d
- Adjust license
- Add openrc subpkg
- Add patch for GCC10
2020-12-17 18:57:18 +00:00

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
}