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.
  • [get | view] (2018-12-17 04:18:21, 0.7 KB) [[attachment:apache_gunicorn.txt]]
  • [get | view] (2018-06-01 21:24:22, 0.3 KB) [[attachment:build_script.txt]]
  • [get | view] (2018-10-19 22:51:40, 0.2 KB) [[attachment:django-admin.txt]]
  • [get | view] (2016-10-15 02:46:23, 0.6 KB) [[attachment:domain_admin_notice_new-list.txt]]
  • [get | view] (2016-07-03 23:19:17, 0.1 KB) [[attachment:footer-generic.txt]]
  • [get | view] (2018-10-19 22:40:37, 0.2 KB) [[attachment:gunicorn.conf]]
  • [get | view] (2018-10-19 22:51:59, 0.2 KB) [[attachment:gunicorn.txt]]
  • [get | view] (2018-12-14 23:21:42, 1.5 KB) [[attachment:init.d_mailman.txt]]
  • [get | view] (2016-10-15 02:47:55, 0.3 KB) [[attachment:list_admin_action_post.txt]]
  • [get | view] (2016-10-15 02:51:01, 0.4 KB) [[attachment:list_member_digest_masthead.txt]]
  • [get | view] (2016-10-15 02:51:47, 0.1 KB) [[attachment:list_member_generic_footer.txt]]
  • [get | view] (2016-10-15 02:52:45, 0.2 KB) [[attachment:list_user_notice_post.txt]]
  • [get | view] (2016-10-15 02:53:25, 0.8 KB) [[attachment:list_user_notice_probe.txt]]
  • [get | view] (2016-10-15 02:54:12, 0.6 KB) [[attachment:list_user_notice_welcome.txt]]
  • [get | view] (2016-07-03 21:45:21, 0.4 KB) [[attachment:lm3o_gunicorn.conf.txt]]
  • [get | view] (2016-07-03 21:41:27, 0.4 KB) [[attachment:lm3o_gunicorn.txt]]
  • [get | view] (2016-07-03 21:56:08, 0.4 KB) [[attachment:lm3o_hyperkitty.cfg.txt]]
  • [get | view] (2016-07-03 21:53:00, 1.0 KB) [[attachment:lm3o_mailman.cfg.txt]]
  • [get | view] (2020-07-27 00:26:27, 1.8 KB) [[attachment:lm3o_nginx.txt]]
  • [get | view] (2020-07-27 00:13:20, 1.8 KB) [[attachment:lm3o_nginx2.txt]]
  • [get | view] (2016-07-03 22:03:34, 0.3 KB) [[attachment:lm3o_postfix.txt]]
  • [get | view] (2016-07-03 21:49:52, 3.8 KB) [[attachment:lm3o_settings_local.txt]]
  • [get | view] (2017-04-01 16:24:00, 0.8 KB) [[attachment:lm3o_urls.txt]]
  • [get | view] (2018-10-19 22:30:14, 0.4 KB) [[attachment:mailman-hyperkitty.cfg]]
  • [get | view] (2018-10-19 23:08:37, 0.8 KB) [[attachment:mailman-post-update.txt]]
  • [get | view] (2018-10-19 22:27:27, 0.9 KB) [[attachment:mailman.cfg]]
  • [get | view] (2018-10-19 22:52:25, 0.1 KB) [[attachment:mailman.txt]]
  • [get | view] (2019-11-08 00:26:04, 0.6 KB) [[attachment:mailman_crontab.txt]]
  • [get | view] (2017-01-10 01:02:14, 1.4 KB) [[attachment:mailman_init.txt]]
  • [get | view] (2016-07-03 23:19:28, 0.4 KB) [[attachment:masthead.txt]]
  • [get | view] (2016-07-03 22:26:05, 0.6 KB) [[attachment:mpo_lmtp_patch.txt]]
  • [get | view] (2016-07-03 22:12:07, 0.1 KB) [[attachment:mpo_mailman.cfg.add.txt]]
  • [get | view] (2016-07-03 22:14:30, 0.4 KB) [[attachment:mpo_postfix.cfg.txt]]
  • [get | view] (2016-07-03 22:23:02, 0.6 KB) [[attachment:mpo_postfix_main.txt]]
  • [get | view] (2016-07-03 22:16:38, 0.7 KB) [[attachment:mpo_postmap.txt]]
  • [get | view] (2016-07-04 01:35:54, 0.6 KB) [[attachment:mpo_settings_diff.txt]]
  • [get | view] (2020-07-30 18:57:00, 1.1 KB) [[attachment:mpo_wsgi.txt]]
  • [get | view] (2016-07-03 23:19:40, 0.6 KB) [[attachment:newlist.txt]]
  • [get | view] (2016-07-03 23:31:41, 0.3 KB) [[attachment:postack.txt]]
  • [get | view] (2016-07-03 23:19:49, 0.8 KB) [[attachment:probe.txt]]
  • [get | view] (2016-10-15 03:31:25, 12.3 KB) [[attachment:production.py]]
  • [get | view] (2018-06-01 21:18:34, 0.1 KB) [[attachment:pull_script.txt]]
  • [get | view] (2019-11-07 04:24:21, 5.8 KB) [[attachment:settings_local.py]]
  • [get | view] (2018-12-14 23:02:50, 0.4 KB) [[attachment:systemd_gunicorn.txt]]
  • [get | view] (2018-12-14 23:04:48, 0.4 KB) [[attachment:systemd_mailman.txt]]
  • [get | view] (2018-12-14 23:06:17, 0.3 KB) [[attachment:systemd_qcluster.txt]]
  • [get | view] (2019-01-15 21:22:55, 0.2 KB) [[attachment:upstart_gunicorn.txt]]
  • [get | view] (2019-01-15 21:27:19, 0.2 KB) [[attachment:upstart_qcluster.txt]]
  • [get | view] (2019-01-16 20:40:43, 1.4 KB) [[attachment:urls.py]]
  • [get | view] (2016-07-03 23:19:57, 0.6 KB) [[attachment:welcome.txt]]
  • [get | view] (2018-10-19 22:34:33, 1.1 KB) [[attachment:wsgi.py]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.