Fix Postgrey PID

A default install of postgrey on Debian based systems will probably barf up

Couldn't unlink "/var/run/postgrey.pid" [Permission denied]

error messages when restarting the daemon. To get rid of them do this:

mkdir /var/run/postgrey
chown postgrey:postgrey /var/run/postgrey
sed -i 's/$DAEMON_NAME.pid/$DAEMON_NAME\/$DAEMON_NAME.pid/' /etc/init.d/postgrey
/etc/init.d/postgrey stop
rm /var/run/postgrey.pid
/etc/init.d/postgrey start
tips/fix_postgrey_pid.txt · Last modified: 2023-08-06 19:12 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki