diff --git a/example_services/egsbot.service b/example_services/egsbot.service index fde63f6..0b7eece 100644 --- a/example_services/egsbot.service +++ b/example_services/egsbot.service @@ -3,10 +3,12 @@ Description=Empyrion Chat Bot by SKYFALL After=network.target [Service] -Type=forking User=ivo -PIDFile=/var/run/egsbot.pid -ExecStart=/opt/skyfall/egsbot/run.rb +WorkingDirectory=/opt/skyfall/egs-bot +StandardOutput=file:/var/log/skyfall/egs-bot/run.log +StandardError=file:/var/log/skyfall/egs-bot/error.log +PIDFile=/var/run/skyfall/egsbot.pid +ExecStart=/usr/bin/ruby /opt/skyfall/egs-bot/run.rb SuccessExitStatus=SIGKILL Restart=on-failure