Skip to content

Instantly share code, notes, and snippets.

@KristerV
Created September 21, 2017 14:09
Show Gist options
  • Save KristerV/f81dfd7ac5dfa74df56927a1cddf94f2 to your computer and use it in GitHub Desktop.
Save KristerV/f81dfd7ac5dfa74df56927a1cddf94f2 to your computer and use it in GitHub Desktop.
[Service]
WorkingDirectory=/srv/heliumpay-budgetweb-backend/
ExecStartPre=/usr/bin/git checkout .
ExecStartPre=/usr/bin/git pull
ExecStartPre=/usr/bin/npm install
ExecStart=/usr/bin/nodejs /srv/heliumpay-budgetweb-backend/index.js
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=budgetweb-backend
User=webapp
Group=webapp
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target
[Service]
WorkingDirectory=/srv/heliumpay-budgetweb-frontend/
ExecStartPre=/usr/bin/git checkout .
ExecStartPre=/usr/bin/git pull
ExecStartPre=/usr/bin/npm install
ExecStartPre=/usr/bin/npm run build
ExecStart=/usr/bin/npm run start
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=budgetweb-frontned
User=webapp
Group=webapp
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target
[Unit]
Description=Dash's distributed currency daemon
After=network.target
[Service]
User=dashcore
Group=dashcore
Type=forking
PIDFile=/var/lib/dashd/dashd.pid
ExecStart=/usr/bin/dashd -daemon -pid=/var/lib/dashd/dashd.pid \
-conf=/etc/dashcore/dash.conf -datadir=/var/lib/dashd -disablewallet
Restart=always
PrivateTmp=true
TimeoutStopSec=60s
TimeoutStartSec=2s
StartLimitInterval=120s
StartLimitBurst=5
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment