From 31768c70239ca46a0bfe7583ad3288155fe97345 Mon Sep 17 00:00:00 2001 From: emy Date: Sun, 13 Mar 2022 05:11:25 +0100 Subject: [PATCH] systemd.service configured --- conf/systemd.service | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index 31e9da3..cbfd91f 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -1,13 +1,15 @@ [Unit] -Description=Small description of the service -After=network.target +Description=GoToSocial Server +After=network.target postgresql.service nginx.service [Service] -Type=simple +Type=exec +Restart=on-failure + User=__APP__ Group=__APP__ -WorkingDirectory=__FINALPATH__/ -ExecStart=__FINALPATH__/script +WorkingDirectory=__FINALPATH__/__APP__ +ExecStart=__FINALPATH__/__APP__/ --config-path config.yaml server start StandardOutput=append:/var/log/__APP__/__APP__.log StandardError=inherit