/[baselayout]/trunk/init.d/local
Gentoo

Contents of /trunk/init.d/local

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2763 - (show annotations) (download)
Tue Jul 10 19:09:41 2007 UTC (7 years, 1 month ago) by uberlord
File size: 735 byte(s)
init scripts and their extra options can now have descriptions, #184327.
1 #!/sbin/runscript
2 # Copyright 1999-2007 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4
5 description="Executes user command in /etc/conf.d/local.start when starting \
6 and /etc/conf.d/local.stop when stopping."
7
8 depend() {
9 after *
10 }
11
12 start() {
13 ebegin "Starting local"
14
15 # Add any misc programs that should be started
16 # to /etc/conf.d/local.start
17 if [ -e /etc/conf.d/local.start ] ; then
18 . /etc/conf.d/local.start
19 fi
20
21 eend $? "Failed to start local"
22 }
23
24 stop() {
25 ebegin "Stopping local"
26
27 # Add any misc programs that should be stopped
28 # to /etc/conf.d/local.stop
29 if [ -e /etc/conf.d/local.stop ] ; then
30 . /etc/conf.d/local.stop
31 fi
32
33 eend $? $"Failed to stop local"
34 }
35
36 # vim: set ts=4 :

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20