Remove unicorn requirement for systemd service
This commit is contained in:
parent
1cc27e2837
commit
3e764e6d4d
@ -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]
|
||||||
|
@ -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
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user