Create sample service file

Create sample service file for launching/restarting via systemd.
Configured by modifying User, WorkingDirectory and EnvironmentFile to reflect username and path.
File is to be moved to ```/etc/systemd/system/chibisafe.service```
This commit is contained in:
Liam 2021-01-05 02:33:41 +00:00 committed by GitHub
parent f2e270d284
commit 1516ec6281
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

14
chibisafe-sample.service Normal file
View File

@ -0,0 +1,14 @@
[Unit]
Description=chibisafe, easy to use file uploader
After=network.target
[Service]
Type=simple
User=yourusername
WorkingDirectory=/path/to/chibisafe
EnvironmentFile=/path/to/chibisafe/.env
ExecStart=/usr/bin/npm run start
Restart=always
[Install]
WantedBy=multi-user.target