Last change
on this file since 2167cfe was 7df280d, checked in by Joe Ciccone <jciccone@…>, 17 years ago |
Change /bin/sh to /bin/bash in the bootscripts because the bootscripts use bashisms. Having ash linked to sh will cause errors. Thanks to Bigdassaved for providing the diff and Copper for bring up the issue.
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[7df280d] | 1 | #!/bin/bash
|
---|
[7125722] | 2 | # Description: The qpopper program provides Post Office Protocol services
|
---|
| 3 | # to users.
|
---|
| 4 | #
|
---|
| 5 | # Processname: popper
|
---|
| 6 | # config: /etc/mail/qpopper.conf
|
---|
| 7 |
|
---|
| 8 | # Based on sysklogd script from LFS-3.1 and earlier.
|
---|
| 9 | # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
|
---|
| 10 |
|
---|
| 11 | #$LastChangedBy: bdubbs $
|
---|
| 12 | #$Date: 2006-04-24 00:01:25 -0500 (Mon, 24 Apr 2006) $
|
---|
| 13 |
|
---|
| 14 | . /etc/sysconfig/rc
|
---|
| 15 | . $rc_functions
|
---|
| 16 |
|
---|
| 17 | CONFIG=/etc/mail/qpopper.conf
|
---|
| 18 | #PORT=110
|
---|
| 19 |
|
---|
| 20 | [ -f /usr/sbin/popper ] || exit 0
|
---|
| 21 |
|
---|
| 22 | RETVAL=0
|
---|
| 23 | prog="qpopper"
|
---|
| 24 |
|
---|
| 25 |
|
---|
| 26 | start()
|
---|
| 27 | {
|
---|
| 28 | if [ ! -f $CONFIG ]
|
---|
| 29 | then
|
---|
| 30 | echo "$prog not started. $CONFIG missing!"
|
---|
| 31 | exit 1
|
---|
| 32 | fi
|
---|
| 33 | echo -n $"Starting $prog: "
|
---|
| 34 | loadproc /usr/sbin/popper $PORT -f $CONFIG
|
---|
| 35 | echo
|
---|
| 36 | RETVAL=$?
|
---|
| 37 | return $RETVAL
|
---|
| 38 | }
|
---|
| 39 |
|
---|
| 40 | stop()
|
---|
| 41 | {
|
---|
| 42 | echo -n $"Shutting down $prog: "
|
---|
| 43 | killproc popper
|
---|
| 44 | RETVAL=$?
|
---|
| 45 | echo
|
---|
| 46 | return $RETVAL
|
---|
| 47 | }
|
---|
| 48 |
|
---|
| 49 |
|
---|
| 50 | case "$1" in
|
---|
| 51 | start)
|
---|
| 52 | start
|
---|
| 53 | ;;
|
---|
| 54 | stop)
|
---|
| 55 | stop
|
---|
| 56 | ;;
|
---|
| 57 | restart)
|
---|
| 58 | stop
|
---|
| 59 | start
|
---|
| 60 | RETVAL=$?
|
---|
| 61 | ;;
|
---|
| 62 | *)
|
---|
| 63 | echo "Usage: /etc/init.d/qpopper{start|stop|restart}"
|
---|
| 64 | exit 1
|
---|
| 65 | esac
|
---|
| 66 |
|
---|
| 67 | exit 0
|
---|
| 68 |
|
---|
| 69 | # End $rc_base/init.d/qpopper
|
---|
Note:
See
TracBrowser
for help on using the repository browser.