diff --git a/conf/lstu-minion@.service b/conf/lstu-minion@.service index cc9931a..e0c001d 100644 --- a/conf/lstu-minion@.service +++ b/conf/lstu-minion@.service @@ -3,7 +3,7 @@ Description=Shortened URLs service job queue Documentation=https://framagit.org/luc/lstu [Service] -Type=simple +Type=forking User=www-data WorkingDirectory=__FINALPATH__ ExecStart=/usr/local/bin/carton exec script/application minion worker diff --git a/conf/systemd.service b/conf/systemd.service index f7517e1..5cbd244 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -5,9 +5,8 @@ Requires=network.target After=network.target [Service] -Type=simple +Type=forking User=www-data -RemainAfterExit=yes Restart=always RestartSec=10 WorkingDirectory=__FINALPATH__