Add systemd unit service file

This commit is contained in:
Christian Bundy 2019-12-10 17:37:20 -08:00
parent 4f3dd0544c
commit ac4b95006d
No known key found for this signature in database
GPG Key ID: EB541AAEF4366237
1 changed files with 13 additions and 0 deletions

13
contrib/oasis.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=Oasis - Friendly Scuttlebutt Web Interface
Documentation=https://github.com/fraction/oasis
After=network.target
[Service]
Type=simple
User=unicorn
ExecStart=/usr/bin/node /home/unicorn/.yarn/bin/oasis --host localhost --port 4515
Restart=on-failure
[Install]
WantedBy=multi-user.target