From f29d569cd33a73da5ad675f43a34ad53c5cc9bc6 Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 2 Feb 2023 14:10:02 +0000 Subject: Work --- repo/samba/samba.initd | 79 -------------------------------------------------- 1 file changed, 79 deletions(-) delete mode 100644 repo/samba/samba.initd (limited to 'repo/samba/samba.initd') diff --git a/repo/samba/samba.initd b/repo/samba/samba.initd deleted file mode 100644 index 71c7fb2..0000000 --- a/repo/samba/samba.initd +++ /dev/null @@ -1,79 +0,0 @@ -#!/sbin/openrc-run - -extra_started_commands="reload" -piddir=${piddir:-"/run/samba"} - -DAEMON=${RC_SVCNAME#samba.} -if [ "$DAEMON" != "$RC_SVCNAME" ]; then - daemon_list=$DAEMON -fi - -depend() { - need net - after firewall -} - -start_pre() { - checkpath --directory "$piddir" -} - -start_samba() { - start-stop-daemon --start --quiet --exec /usr/sbin/samba -- \ - ${samba_options:-"-D"} -} - -stop_samba() { - start-stop-daemon --stop --quiet --pidfile "$piddir"/samba.pid -} - -start_smbd() { - start-stop-daemon --start --quiet --exec /usr/sbin/smbd -- \ - ${smbd_options:-"-D"} -} - -stop_smbd() { - start-stop-daemon --stop --quiet --pidfile "$piddir"/smbd.pid -} - -start_nmbd() { - start-stop-daemon --start --quiet --exec /usr/sbin/nmbd -- \ - ${nmbd_options:-"-D"} -} - -stop_nmbd() { - start-stop-daemon --stop --quiet --pidfile "$piddir"/nmbd.pid -} - -start_winbindd() { - start-stop-daemon --start --quiet --exec /usr/sbin/winbindd -- \ - $winbindd_options -} - -stop_winbindd() { - start-stop-daemon --stop --quiet --pidfile "$piddir"/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 -} - -- cgit v1.2.1