containers-opendkim/opendkimd.sh

16 lines
255 B
Bash
Raw Normal View History

2019-09-27 20:18:41 +00:00
#!/bin/sh
pid=/tmp/opendkim.pid
case $1 in
2022-03-07 21:18:52 +00:00
stop)
test -f ${pid} && cat ${pid} | xargs kill
;;
2022-03-15 22:30:22 +00:00
start)
2022-03-07 21:18:52 +00:00
install -dm 2750 -o opendkim -g opendkim /run/opendkim
2019-09-27 20:20:33 +00:00
chown -R opendkim:opendkim /etc/opendkim
2022-03-07 21:18:52 +00:00
/usr/sbin/opendkim
;;
2019-09-27 20:18:41 +00:00
esac