21 lines
389 B
Bash
Executable File
21 lines
389 B
Bash
Executable File
#!/bin/sh
|
|
|
|
pid=/tmp/opendkim.pid
|
|
|
|
case $1 in
|
|
stop)
|
|
test -f $pid && cat $pid | xargs kill
|
|
rm -f $pid
|
|
;;
|
|
start)
|
|
install -dm 2750 -o opendkim -g opendkim /run/opendkim
|
|
chown -R opendkim:opendkim /etc/opendkim
|
|
|
|
/usr/sbin/opendkim
|
|
;;
|
|
rotate)
|
|
test -f $pid || exit 0
|
|
test $pid -ot /etc/opendkim/dkim.private && cat $pid | xargs -r kill -USR1
|
|
;;
|
|
esac
|