From 3847d0479192f3150df19affe8d8712f83167ac8 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Thu, 25 Nov 2021 07:53:25 +0800 Subject: Add systemd services --- init/jimbrella-web.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 init/jimbrella-web.service (limited to 'init/jimbrella-web.service') diff --git a/init/jimbrella-web.service b/init/jimbrella-web.service new file mode 100644 index 0000000..3de7deb --- /dev/null +++ b/init/jimbrella-web.service @@ -0,0 +1,16 @@ +[Unit] +Description=JImbrella uWSGI +After=syslog.target + +[Service] +User=jim +WorkingDirectory=/opt/jimbrella +ExecStart=/usr/local/bin/uwsgi -s 127.0.0.1:5000 --manage-script-name --module jimbrella.web --callable app +Restart=always +KillSignal=SIGQUIT +Type=notify +StandardError=syslog +NotifyAccess=all + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3