[packages/opensmtpd] fix service lockfile name
glen
glen at pld-linux.org
Sun Nov 3 00:41:58 CET 2013
commit ad4ea56509f154e4ed1e03b3ed1b83ed87f78c6b
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Nov 3 01:41:49 2013 +0200
fix service lockfile name
opensmtpd.init | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/opensmtpd.init b/opensmtpd.init
index 9df6e0a..1128b68 100755
--- a/opensmtpd.init
+++ b/opensmtpd.init
@@ -33,7 +33,7 @@ pidfile="/var/run/smtpd.pid"
start() {
# Check if the service is already running?
- if [ -f /var/lock/subsys/smtpd ]; then
+ if [ -f /var/lock/subsys/opensmtpd ]; then
msg_already_running "OpenSMTPd"
return
fi
@@ -41,11 +41,11 @@ start() {
msg_starting "OpenSMTPd"
daemon /usr/sbin/smtpd
RETVAL=$?
- [ $RETVAL -eq 0 ] && touch /var/lock/subsys/smtpd
+ [ $RETVAL -eq 0 ] && touch /var/lock/subsys/opensmtpd
}
stop() {
- if [ ! -f /var/lock/subsys/smtpd ]; then
+ if [ ! -f /var/lock/subsys/opensmtpd ]; then
msg_not_running "OpenSMTPd"
return
fi
@@ -53,11 +53,11 @@ stop() {
# Stop daemons.
msg_stopping "OpenSMTPd"
killproc --pidfile $pidfile smtpd -TERM
- rm -f /var/lock/subsys/smtpd
+ rm -f /var/lock/subsys/opensmtpd
}
condrestart() {
- if [ ! -f /var/lock/subsys/smtpd ]; then
+ if [ ! -f /var/lock/subsys/opensmtpd ]; then
msg_not_running "OpenSMTPd"
RETVAL=$1
return
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/opensmtpd.git/commitdiff/ad4ea56509f154e4ed1e03b3ed1b83ed87f78c6b
More information about the pld-cvs-commit
mailing list