diff --git a/conf/systemd.service b/conf/backend.service similarity index 87% rename from conf/systemd.service rename to conf/backend.service index 6ccf2a0..4dd432a 100644 --- a/conf/systemd.service +++ b/conf/backend.service @@ -1,5 +1,5 @@ [Unit] -Description=A modern and self-hosted take on file uploading services that can handle anything you throw at it thanks to it's robust and fast API, chunked uploads support and more. +Description=a beautiful and performant vault to save all your files in the cloud: After=network.target [Service] @@ -9,7 +9,7 @@ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ Environment="PATH=__PATH_WITH_NODEJS__" Environment="NODE_ENV=production" -ExecStart=/usr/bin/bash -c "yarn start:backend & yarn start:frontend" +ExecStart=yarn start:frontend Restart=always RestartSec=5 StandardOutput=append:/var/log/__APP__/__APP__.log