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:
parent
f2e270d284
commit
1516ec6281
|
@ -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
|
Loading…
Reference in New Issue