Skip to content
Snippets Groups Projects
Commit babdbce2 authored by Carsten Rosenberg's avatar Carsten Rosenberg
Browse files

[Minor] Adjust script and config paths

parent 1bf012c5
No related branches found
No related tags found
No related merge requests found
......@@ -6,12 +6,11 @@ After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
Type=simple
EnvironmentFile=-/etc/default/poolmon
EnvironmentFile=-/etc/dovecot/poolmon
WorkingDirectory=/
ExecStart=/usr/sbin/poolmon -f $OPTIONS
ExecStart=/usr/local/sbin/poolmon -f $OPTIONS
Restart=on-failure
LimitNOFILE=10000
[Install]
WantedBy=multi-user.target
......@@ -13,7 +13,7 @@
# Provides: poolmon
# Required-Start: $network
# Required-Stop: $network
# Default-Start:
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: start and stop Poolmon mailserver pool monitor
# Description: Poolmon monitors a pool of Dovecot director mailservers
......@@ -24,13 +24,13 @@
# Source function library.
. /etc/init.d/functions
if [ -f /etc/sysconfig/poolmon -a $UID -eq 0 ]; then
. /etc/sysconfig/poolmon
if [ -f /etc/dovecot/poolmon -a $UID -eq 0 ]; then
. /etc/dovecot/poolmon
fi
RETVAL=0
prog="Poolmon"
exec="/usr/sbin/poolmon"
exec="/usr/local/sbin/poolmon"
pidfile="/var/run/poolmon.pid"
lockfile="/var/lock/subsys/poolmon"
......@@ -99,4 +99,3 @@ case "$1" in
esac
exit $RETVAL
......@@ -8,4 +8,4 @@ expect fork
respawn
exec poolmon -l syslog -c /etc/poolmon-credentials.conf
exec poolmon -l syslog -c /etc/dovecot/poolmon-credentials.conf
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment