Last active
October 1, 2019 21:50
-
-
Save jpylypiw/94d3237c99384525642758269f3120f8 to your computer and use it in GitHub Desktop.
Linux Service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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