extras/systemd/crashtest.service
author Vincent Tondellier <tonton+hg@team1664.org>
Mon, 17 Jul 2023 22:52:42 +0200
changeset 134 26ba2717da6e
parent 111 f827f3c50dcf
permissions -rw-r--r--
Allow matching filelink on partial url paths

[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