Skip to content

Instantly share code, notes, and snippets.

@jpylypiw
Last active October 1, 2019 21:50
Show Gist options
  • Save jpylypiw/94d3237c99384525642758269f3120f8 to your computer and use it in GitHub Desktop.
Save jpylypiw/94d3237c99384525642758269f3120f8 to your computer and use it in GitHub Desktop.
Linux Service
# Example File: /etc/systemd/system/owapi.service
# Use this for creating a new linux service.
# Execute `systemctl daemon-reload` after creating the file.
# remove these comments!
[Unit]
Description=OWAPI - Overwatch API server process
Wants=network-online.target
After=syslog.target time-sync.target network.target network-online.target
[Service]
ExecStart=/bin/bash run.sh
WorkingDirectory=/opt/xxx
Restart=always
RestartSec=10
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=owapi
User=owapi
Group=owapi
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment