Remove unicorn requirement for systemd service

This commit is contained in:
Jonathan Dahan 2020-01-03 12:23:58 -05:00
parent 1cc27e2837
commit 3e764e6d4d
2 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,8 @@
# cp oasis.service ~/.config/systemd/user
# systemctl --user daemon-reload
# systemctl --user enable oasis
# systemctl --user start oasis
[Unit] [Unit]
Description=Oasis - Friendly Scuttlebutt Web Interface Description=Oasis - Friendly Scuttlebutt Web Interface
Documentation=https://github.com/fraction/oasis Documentation=https://github.com/fraction/oasis
@ -5,8 +10,7 @@ After=network.target
[Service] [Service]
Type=simple Type=simple
User=unicorn ExecStart=%s -l -c 'oasis --host localhost --port 4515'
ExecStart=/usr/bin/node /home/unicorn/.yarn/bin/oasis --host localhost --port 4515
Restart=on-failure Restart=on-failure
[Install] [Install]

View File

@ -29,3 +29,12 @@ yarn
```shell ```shell
npm install npm install
``` ```
## System service
```shell
cp contrib/oasis.service ~/.config/systemd/user
systemctl --user daemon-reload
systemctl --user enable oasis
systemctl --user start oasis
```