feat: add an example systemd service
This commit is contained in:
parent
825dff4c98
commit
02bae8f0e3
1 changed files with 15 additions and 0 deletions
15
example.service
Normal file
15
example.service
Normal file
|
@ -0,0 +1,15 @@
|
|||
[Unit]
|
||||
Description=Cozy
|
||||
|
||||
[Service]
|
||||
ExecStart=/home/ayo/cozy/server.mjs
|
||||
Restart=always
|
||||
User=nobody
|
||||
# Note Debian/Ubuntu uses 'nogroup', RHEL/Fedora uses 'nobody'
|
||||
Group=nogroup
|
||||
Environment=PATH=/usr/bin:/usr/local/bin
|
||||
Environment=NODE_ENV=production
|
||||
WorkingDirectory=/home/ayo/cozy
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in a new issue