extras/systemd/crashtest.service
changeset 111 f827f3c50dcf
equal deleted inserted replaced
110:d024bf1f4eab 111:f827f3c50dcf
       
     1 [Unit]
       
     2 Description=CrashTest Web Service
       
     3 Requires=network.target
       
     4 After=network.target
       
     5 ConditionPathExists=/etc/crashtest/crash_test.conf
       
     6 
       
     7 [Service]
       
     8 Type=forking
       
     9 User=crashtest
       
    10 RemainAfterExit=yes
       
    11 ProtectSystem=full
       
    12 
       
    13 Environment=MOJO_CONFIG=/etc/crashtest/crash_test.conf
       
    14 EnvironmentFile=-/etc/default/crashtest
       
    15 
       
    16 ;PrivateTmp=yes
       
    17 ;JoinsNamespaceOf=
       
    18 
       
    19 RuntimeDirectory=crashtest
       
    20 RuntimeDirectoryMode=0755
       
    21 PIDFile=/run/crashtest/hypnotoad.pid
       
    22 
       
    23 WorkingDirectory=/var/lib/crashtest
       
    24 ExecStart=/usr/bin/hypnotoad /usr/bin/CrashTest
       
    25 ExecStop=/usr/bin/hypnotoad -s /usr/bin/CrashTest
       
    26 ExecReload=/usr/bin/hypnotoad /usr/bin/CrashTest
       
    27 
       
    28 [Install]
       
    29 WantedBy=multi-user.target