sdl/sdl-wkr/scripts/sdl-wkr.service

30 lines
480 B
Desktop File

[Unit]
Description=SDL Worker
After=network.target
[Service]
Type=simple
# Paths
Environment=SDL_HOME=%h/.sdl
WorkingDirectory=%h/.sdl/sdl-wkr/current/app
# Start command
ExecStart=%h/.sdl/nodejs/current/bin/node index.js
# Restart behavior
Restart=on-failure
RestartSec=3
# Logging
StandardOutput=append:%h/.sdl/logs/sdl-wkr.out.log
StandardError=append:%h/.sdl/logs/sdl-wkr.err.log
# Clean shutdown
KillSignal=SIGTERM
TimeoutStopSec=15
[Install]
WantedBy=default.target