Systemd template

[Unit] Description=REPLACE_DESCRIPTION, %i
Documentation=REPLACE_LINK_TO_DOCUMENTATION
After=syslog.target network.target[Service] Type=simple

User=REPLACE_UNIX_USER
Group=REPLACE_UNIX_GROUP

WorkingDirectory=REPLACE_TOP_BINARY_FOLDER

Environment=”REPLACE_CONSTANT”

ExecStart=REPLACE_PATH_SCRIPT_START_PROCESS
ExecStop=REPLACE_PATH_SCRIPT_STOP_PROCESS

Restart=always

#In case we have to wait for the scripts to run
#RestartSec=10

# When stopping, how long to wait before giving up and sending SIGKILL?
# Keep in mind that SIGKILL on a process can cause data loss.
TimeoutStopSec=infinity

[Install] WantedBy=multi-user.target

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>