From: | "Patrick Lauer (patrick)" <patrick@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-fs/samba/files: samba4.initd |
Date: | Sun, 28 Feb 2010 16:03:12 |
Message-Id: | E1Nllbk-0000hJ-K7@stork.gentoo.org |
1 | patrick 10/02/28 16:03:04 |
2 | |
3 | Added: samba4.initd |
4 | Log: |
5 | Adding init script for samba4 |
6 | (Portage version: 2.2_rc63/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 net-fs/samba/files/samba4.initd |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/files/samba4.initd?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/files/samba4.initd?rev=1.1&content-type=text/plain |
13 | |
14 | Index: samba4.initd |
15 | =================================================================== |
16 | #!/sbin/runscript |
17 | # Copyright 1999-2009 Gentoo Foundation |
18 | # Distributed under the terms of the GNU General Public License v2 |
19 | # $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/samba4.initd,v 1.1 2010/02/28 16:03:04 patrick Exp $ |
20 | |
21 | opts="reload" |
22 | |
23 | description="The samba daemon init script" |
24 | description_reload="Reloads the samba daemon" |
25 | |
26 | depend() { |
27 | need net |
28 | } |
29 | |
30 | start() { |
31 | ebegin "Starting samba" |
32 | start-stop-daemon --start --exec /usr/sbin/samba |
33 | eend $? |
34 | } |
35 | |
36 | stop() { |
37 | ebegin "Stopping samba" |
38 | start-stop-daemon --stop --pidfile /var/run/samba/samba.pid |
39 | eend $? |
40 | } |
41 | |
42 | reload() { |
43 | ebegin "Reloading samba" |
44 | killall -HUP samba |
45 | eend $? |
46 | } |