[Unit] Description=Shortened URLs service Documentation=https://framagit.org/luc/lstu Requires=network.target After=network.target [Service] Type=simple User=www-data RemainAfterExit=yes Restart=always RestartSec=10 WorkingDirectory=__FINALPATH__ PIDFile=__FINALPATH__/script/hypnotoad.pid 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 [Install] WantedBy=multi-user.target