diff options
-rw-r--r-- | init/jimbrella-routine.service | 12 | ||||
-rw-r--r-- | init/jimbrella-web.service | 16 |
2 files changed, 28 insertions, 0 deletions
diff --git a/init/jimbrella-routine.service b/init/jimbrella-routine.service new file mode 100644 index 0000000..b641028 --- /dev/null +++ b/init/jimbrella-routine.service @@ -0,0 +1,12 @@ +[Unit] +Description=JImbrella routine + +[Service] +User=jim +Type=oneshot +WorkingDirectory=/opt/jimbrella +ExecStart=python3 -m jimbrella.routine +RemainAfterExit=true + +[Install] +WantedBy=multi-user.target 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 |