source: bootscripts-standard/bootscripts/cblfs/init.d/nas@ 2167cfe

Last change on this file since 2167cfe was 2167cfe, checked in by William Harrington <kb0iic@…>, 11 years ago

bootscripts are the scripts used for the sysvinit book.

  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[2167cfe]1#!/bin/bash
2# Begin $rc_base/init.d/nas
3
4# Based on sysklogd script from LFS-3.1 and earlier.
5# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
6
7#$LastChangedBy: bdubbs $
8#$Date: 2005-08-01 14:29:19 -0500 (Mon, 01 Aug 2005) $
9
10. /etc/sysconfig/rc
11. $rc_functions
12
13case "$1" in
14 start)
15 boot_mesg "Starting the Network Audio System Server..."
16 loadproc /usr/X11R6/bin/nasd -aa -b
17# pidof nasd
18# if test $? = "0"
19# then
20# print_status warning running
21# else
22# /usr/X11R6/bin/nasd -aa &
23# pidof /usr/X11R6/bin/nasd
24# if test $? = "0" ; then
25# print_status success
26# else
27# print_status failure
28# fi
29# fi
30 ;;
31
32 stop)
33 boot_mesg "Stopping the Network Audio System Server..."
34 killproc /usr/X11R6/bin/nasd
35 ;;
36
37 reload)
38 boot_mesg "Reloading the Network Audio System Server..."
39 reloadproc /usr/X11R6/bin/nasd
40 ;;
41
42 restart)
43 $0 stop
44 sleep 1
45 $0 start
46 ;;
47
48 status)
49 statusproc /usr/X11R6/bin/nasd
50 ;;
51
52 *)
53 echo "Usage: $0 {start|stop|reload|restart|status}"
54 exit 1
55 ;;
56esac
57
58# End $rc_base/init.d/nasd
Note: See TracBrowser for help on using the repository browser.