1 |
#!/bin/bash |
#!/bin/bash |
2 |
# $Header: /root/magellan-cvs/src/nas/nas.rc,v 1.1 2006-02-18 22:37:30 niro Exp $ |
# $Header: /root/magellan-cvs/src/nas/nas.rc,v 1.2 2006-02-18 22:47:26 niro Exp $ |
3 |
|
|
4 |
#%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k |
#%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k |
5 |
#%start: 80 |
#%start: 80 |
10 |
#%before: |
#%before: |
11 |
#%after: |
#%after: |
12 |
|
|
|
start() { |
|
|
ebegin "Starting nas" |
|
|
start-stop-daemon --start --quiet --exec /usr/X11R6/bin/nasd --background \ |
|
|
--pidfile /var/run/nasd.pid --make-pidfile -- $NAS_OPTIONS |
|
|
eend $? |
|
|
} |
|
|
|
|
|
stop() { |
|
|
ebegin "Stopping nas" |
|
|
start-stop-daemon --stop --quiet --pidfile /var/run/nasd.pid |
|
|
eend $? |
|
|
} |
|
|
|
|
13 |
source /etc/sysconfig/rc |
source /etc/sysconfig/rc |
14 |
source $rc_functions |
source $rc_functions |
15 |
|
|