Attachment 'init.d_mailman.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/mm/bin:/opt/mailman/mm/venv/bin:/usr/sbin:/usr/bin:/bin:/sbin:
12 DESC="GNU Mailman service"
13 DAEMON=/opt/mailman/mm/bin/mailman
14 NAME=mailman
15 USER=mailman
16 GROUP=mailman
17
18 # Needed by click
19 export LANG=en_US.UTF-8
20
21 # Exit if the package is not installed
22 [ -x "$DAEMON" ] || exit 0
23
24 # Load the VERBOSE setting and other rcS variables
25 . /lib/init/vars.sh
26
27 # Define LSB log_* functions.
28 # Depend on lsb-base (>= 3.2-14) to ensure that this file is present
29 # and status_of_proc is working.
30 . /lib/lsb/init-functions
31
32 case "$1" in
33 start)
34 [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
35 # use --force to remove a stale lock.
36 sudo -u $USER $DAEMON start --force
37 ;;
38 stop)
39 [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
40 sudo -u $USER $DAEMON stop
41 ;;
42 status)
43 sudo -u $USER $DAEMON status
44 ;;
45 reopen)
46 sudo -u $USER $DAEMON reopen
47 ;;
48 restart)
49 log_daemon_msg "Restarting $DESC" "$NAME"
50 sudo -u $USER $DAEMON restart
51 ;;
52 *)
53 echo "Usage: $SCRIPTNAME {start|stop|status|reopen|restart}" >&2
54 exit 3
55 ;;
56 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.