Attachment 'mailman_init.txt'
Download 1 ### BEGIN INIT INFO
2 # Provides: GNU Mailman
3 # Required-Start: $local_fs $network
4 # Required-Stop: $local_fs $network
5 # Default-Start: 2 3 4 5
6 # Default-Stop: 0 1 6
7 # Short-Description: Mailman Service
8 # Description: service control for Mailman
9 ### END INIT INFO
10
11 PATH=/opt/mailman/mailman-bundler/bin:/usr/sbin:/usr/bin:/bin:/sbin:
12 DESC="GNU Mailman service"
13 DAEMON=/opt/mailman/mailman-bundler/bin/mailman
14 NAME=mailman
15 USER=mailman
16 GROUP=mailman
17
18 # Exit if the package is not installed
19 [ -x "$DAEMON" ] || exit 0
20
21 # Load the VERBOSE setting and other rcS variables
22 . /lib/init/vars.sh
23
24 # Define LSB log_* functions.
25 # Depend on lsb-base (>= 3.2-14) to ensure that this file is present
26 # and status_of_proc is working.
27 . /lib/lsb/init-functions
28
29 case "$1" in
30 start)
31 [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
32 # use --force to remove a stale lock.
33 sudo -u $USER $DAEMON start --force
34 ;;
35 stop)
36 [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
37 sudo -u $USER $DAEMON stop
38 ;;
39 status)
40 sudo -u $USER $DAEMON status
41 ;;
42 reopen)
43 sudo -u $USER $DAEMON reopen
44 ;;
45 restart)
46 log_daemon_msg "Restarting $DESC" "$NAME"
47 sudo -u $USER $DAEMON restart
48 ;;
49 *)
50 echo "Usage: $SCRIPTNAME {start|stop|status|reopen|restart}" >&2
51 exit 3
52 ;;
53 esac
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.