aboutsummaryrefslogtreecommitdiffstats
path: root/main/samba/samba.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-10-31 19:00:30 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-11-01 08:42:43 +0000
commit10d822b36efb98cdf117e71ee302c53573c9015b (patch)
tree23c40b4221362ce6afb07a29c42680344f7ed724 /main/samba/samba.initd
parent2dcd1f62c3a2f73c982a2e0952ea0099a088b82d (diff)
downloadaports-10d822b36efb98cdf117e71ee302c53573c9015b.tar.bz2
aports-10d822b36efb98cdf117e71ee302c53573c9015b.tar.xz
main/samba: upgrade to 4.1
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