aboutsummaryrefslogtreecommitdiffstats
path: root/main/samba/samba.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/samba/samba.initd')
-rw-r--r--[-rwxr-xr-x]main/samba/samba.initd10
1 files changed, 3 insertions, 7 deletions
diff --git a/main/samba/samba.initd b/main/samba/samba.initd
index b7bef10e72..c352f4304f 100755..100644
--- a/main/samba/samba.initd
+++ b/main/samba/samba.initd
@@ -7,8 +7,6 @@ if [ "$DAEMON" != "samba" ]; then
daemon_list=$DAEMON
fi
-PIDDIR=/var/run/samba
-
depend() {
need net
after firewall
@@ -20,7 +18,7 @@ start_smbd() {
}
stop_smbd() {
- start-stop-daemon --stop --quiet --pidfile ${PIDDIR}/smbd.pid
+ start-stop-daemon --stop --quiet --pidfile /var/run/samba/smbd.pid
}
start_nmbd() {
@@ -29,7 +27,7 @@ start_nmbd() {
}
stop_nmbd() {
- start-stop-daemon --stop --quiet --pidfile ${PIDDIR}/nmbd.pid
+ start-stop-daemon --stop --quiet --pidfile /var/run/samba/nmbd.pid
}
start_winbindd() {
@@ -38,12 +36,10 @@ start_winbindd() {
}
stop_winbindd() {
- start-stop-daemon --stop --quiet --pidfile ${PIDDIR}/winbindd.pid
+ start-stop-daemon --stop --quiet --pidfile /var/run/samba/winbindd.pid
}
start() {
- checkpath --directory --owner root:root \
- --mode 755 "$PIDDIR"
for i in $daemon_list; do
ebegin "Starting $i"
start_$i