summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
Diffstat (limited to 'packaging')
-rw-r--r--packaging/Fedora/samba.spec.tmpl7
-rw-r--r--packaging/Fedora/smb.init8
-rw-r--r--packaging/Fedora/winbind.init6
3 files changed, 16 insertions, 5 deletions
diff --git a/packaging/Fedora/samba.spec.tmpl b/packaging/Fedora/samba.spec.tmpl
index ec50cc705b..90abadce58 100644
--- a/packaging/Fedora/samba.spec.tmpl
+++ b/packaging/Fedora/samba.spec.tmpl
@@ -214,6 +214,13 @@ if [ "$1" -ge "1" ]; then
%{initdir}/smb condrestart >/dev/null 2>&1
fi
+
+%post swat
+# Add swat entry to /etc/services if not already there.
+if [ ! "`grep ^\s**swat /etc/services`" ]; then
+ echo 'swat 901/tcp # Add swat service used via inetd' >> /etc/services
+fi
+
%post common
/sbin/chkconfig --add winbind
/sbin/ldconfig
diff --git a/packaging/Fedora/smb.init b/packaging/Fedora/smb.init
index fca823a064..4182c13408 100644
--- a/packaging/Fedora/smb.init
+++ b/packaging/Fedora/smb.init
@@ -60,14 +60,16 @@ start() {
stop() {
KIND="SMB"
echo -n $"Shutting down $KIND services: "
- killproc smbd
+ killproc smbd -TERM
RETVAL=$?
+ [ $RETVAL -eq 0 ] && rm -f /var/run/smbd.pid
echo
KIND="NMB"
echo -n $"Shutting down $KIND services: "
- killproc nmbd
+ killproc nmbd -TERM
RETVAL2=$?
- [ $RETVAL -eq 0 -a $RETVAL2 -eq 0 ] && rm -f /var/lock/subsys/smb
+ [ $RETVAL -eq 0 ] && rm -f /var/run/nmbd.pid
+ [ $RETVAL -eq 0 -a $RETVAL2 -eq 0 ] && rm -f /var/lock/subsys/smb
echo ""
return $RETVAL
}
diff --git a/packaging/Fedora/winbind.init b/packaging/Fedora/winbind.init
index ced81135b2..05e0eb4d00 100644
--- a/packaging/Fedora/winbind.init
+++ b/packaging/Fedora/winbind.init
@@ -49,9 +49,11 @@ stop() {
echo
KIND="Winbind"
echo -n $"Shutting down $KIND services: "
- killproc winbindd
+ killproc winbindd -TERM
RETVAL=$?
- [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/winbindd
+ [ $RETVAL -eq 0 ] \
+ && && rm -f /var/run/nmbd.pid \
+ && rm -f /var/lock/subsys/winbindd
echo ""
return $RETVAL
}