summaryrefslogtreecommitdiffstats
path: root/extra/samba/samba.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-07-24 08:01:31 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-07-24 08:01:31 +0000
commitb70981b68efcce5256eb11c6cd26ae123b10b6ea (patch)
treea38be6efae5e2ba15c2e839504632f9b7bfd5f91 /extra/samba/samba.initd
parent2b4df81538b8398442d5296650905c70341dd8d3 (diff)
downloadaports-b70981b68efcce5256eb11c6cd26ae123b10b6ea.tar.bz2
aports-b70981b68efcce5256eb11c6cd26ae123b10b6ea.tar.xz
moved extra/* to main/
and fixed misc build issues
Diffstat (limited to 'extra/samba/samba.initd')
-rw-r--r--extra/samba/samba.initd64
1 files changed, 0 insertions, 64 deletions
diff --git a/extra/samba/samba.initd b/extra/samba/samba.initd
deleted file mode 100644
index d2d395a9..00000000
--- a/extra/samba/samba.initd
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/sbin/runscript
-
-opts="reload"
-
-DAEMON=${SVCNAME#samba.}
-if [ "$DAEMON" != "samba" ]; then
- daemon_list=$DAEMON
-fi
-
-depend() {
- need net
-}
-
-start_smbd() {
- start-stop-daemon --start --quiet --exec /usr/sbin/smbd -- \
- ${smbd_options:-"-D"}
-}
-
-stop_smbd() {
- start-stop-daemon --stop --quiet --pidfile /var/run/samba/smbd.pid
-}
-
-start_nmbd() {
- start-stop-daemon --start --quiet --exec /usr/sbin/nmbd -- \
- ${nmbd_options:-"-D"}
-}
-
-stop_nmbd() {
- start-stop-daemon --stop --quiet --pidfile /var/run/samba/nmbd.pid
-}
-
-start_winbindd() {
- start-stop-daemon --start --quiet --exec /usr/sbin/winbindd -- \
- $winbindd_options
-}
-
-stop_winbindd() {
- start-stop-daemon --stop --quiet --pidfile /var/run/samba/winbindd.pid
-}
-
-start() {
- for i in $daemon_list; do
- ebegin "Starting $i"
- start_$i
- eend $?
- done
-}
-
-stop() {
- for i in $daemon_list; do
- ebegin "Stopping $i"
- stop_$i
- eend $?
- done
-}
-
-reload() {
- for i in $daemon_list; do
- ebegin "Reloading $i"
- killall -HUP $i
- eend $?
- done
-}
-