diff -r d024bf1f4eab -r f827f3c50dcf extras/systemd/crashtest.service --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/extras/systemd/crashtest.service Sun Feb 21 22:32:27 2016 +0100 @@ -0,0 +1,29 @@ +[Unit] +Description=CrashTest Web Service +Requires=network.target +After=network.target +ConditionPathExists=/etc/crashtest/crash_test.conf + +[Service] +Type=forking +User=crashtest +RemainAfterExit=yes +ProtectSystem=full + +Environment=MOJO_CONFIG=/etc/crashtest/crash_test.conf +EnvironmentFile=-/etc/default/crashtest + +;PrivateTmp=yes +;JoinsNamespaceOf= + +RuntimeDirectory=crashtest +RuntimeDirectoryMode=0755 +PIDFile=/run/crashtest/hypnotoad.pid + +WorkingDirectory=/var/lib/crashtest +ExecStart=/usr/bin/hypnotoad /usr/bin/CrashTest +ExecStop=/usr/bin/hypnotoad -s /usr/bin/CrashTest +ExecReload=/usr/bin/hypnotoad /usr/bin/CrashTest + +[Install] +WantedBy=multi-user.target