2017-02-02 19:12:26 +01:00
|
|
|
[Unit]
|
2017-04-21 12:54:39 +02:00
|
|
|
Description=Shortened URLs service
|
|
|
|
Documentation=https://framagit.org/luc/lstu
|
2017-02-02 19:12:26 +01:00
|
|
|
Requires=network.target
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2019-02-03 19:17:36 +01:00
|
|
|
Type=simple
|
2019-03-15 00:20:35 +01:00
|
|
|
User=www-data
|
2017-02-02 19:12:26 +01:00
|
|
|
RemainAfterExit=yes
|
2019-02-03 01:02:32 +01:00
|
|
|
Restart=always
|
|
|
|
RestartSec=10
|
2017-04-03 18:58:16 +02:00
|
|
|
WorkingDirectory=__FINALPATH__
|
2018-06-11 00:46:45 +02:00
|
|
|
PIDFile=__FINALPATH__/script/hypnotoad.pid
|
2017-04-21 12:54:39 +02:00
|
|
|
ExecStart=/usr/local/bin/carton exec hypnotoad script/lstu
|
|
|
|
ExecStop=/usr/local/bin/carton exec hypnotoad -s script/lstu
|
|
|
|
ExecReload=/usr/local/bin/carton exec hypnotoad script/lstu
|
2017-02-02 19:12:26 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|