]> WPIA git - infra.git/blobdiff - modules/motion/files/motion.service
Merge changes I3d69d1c6,I8b0fa62a,I668a5e8d,Iaf0e30fa
[infra.git] / modules / motion / files / motion.service
diff --git a/modules/motion/files/motion.service b/modules/motion/files/motion.service
new file mode 100644 (file)
index 0000000..e4ed3b4
--- /dev/null
@@ -0,0 +1,20 @@
+[Unit]
+Description=Motion uWSGI app
+After=syslog.target
+
+[Service]
+ExecStart=/home/motion/motion/bin/uwsgi --ini ../motion.ini
+User=motion
+Group=motion
+Restart=on-failure
+KillSignal=SIGQUIT
+Type=notify
+StandardError=journal
+NotifyAccess=all
+WorkingDirectory=/home/motion/motion
+PrivateTmp=yes
+PrivateDevices=yes
+ProtectSystem=strict
+ProtectHome=no
+ReadOnlyPaths=/home
+ReadWritePaths=/home/motion/motion/__pycache__/ /motion-socket