lstu.service 426 Bytes
Newer Older
1 2
[Unit]
Description=Shortened URLs service
Luc Didry's avatar
Luc Didry committed
3 4
Requires=network.target
After=network.target
5 6

[Service]
Luc Didry's avatar
Luc Didry committed
7 8
Type=simple
RemainAfterExit=yes
9
WorkingDirectory=/var/www/lstu/
Luc Didry's avatar
Luc Didry committed
10 11 12
PIDFile=/var/www/lstu/script/hypnotoad.pid
ExecStart=/usr/local/bin/carton exec hypnotoad script/lstu -f
ExecStop=/usr/local/bin/carton exec hypnotoad -s script/lstu
13 14 15 16
ExecReload=/usr/local/bin/carton exec hypnotoad script/lstu

[Install]
WantedBy=multi-user.target