forked from Spearhead/privateburn
add systemd service defition
This commit is contained in:
parent
88d4334c48
commit
a11efb2173
16
privateburn.service.systemd
Normal file
16
privateburn.service.systemd
Normal file
@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
# /lib/systemd/system/privateburn.service
|
||||
Description=PricvateBurn Node.js Application
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=www-data
|
||||
WorkingDirectory=/var/www/privateburn
|
||||
Environment=NODE_ENV=production
|
||||
ExecStart=/usr/bin/node server.js
|
||||
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
x
Reference in New Issue
Block a user