Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
enforce global environment variable via systemd
[Service]
Environment=TS_SOCKET=/tsp/tsp-web.socket
Environment=TMPDIR=/tsp/
UMask=0002
WorkingDirectory=/usr/lib/node_modules/tsp-web
ExecStart=/usr/bin/node /usr/lib/node_modules/tsp-web/index.js
KillSignal=SIGQUIT
KillMode=process
TimeoutStopSec=15s
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=tsp-web
User=tsp
Group=tsp
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.