Commit 229b59e9 authored by Helmo's avatar Helmo
Browse files

Add systemd example to deamon script, #1991

parent fda3be16
Pipeline #7026 passed with stage
in 8 minutes and 15 seconds
......@@ -11,6 +11,30 @@
# - /usr/local/ispconfig/server/scripts/start_server.pl --stop (Stop)
#
# You can then disable the regular cronjob calling /usr/local/ispconfig/server/server.sh
#
# Systemd example:
# past the code below to `/lib/systemd/system/ispconfig-runner.service`
# then run `systemctl daemon-reload` and `systemctl enable ispconfig-runner`
# And finally `service ispconfig-runner start`
#
#===
# [Unit]
# Description=Start an ISPconfig task runner server
# After=network.target
#
# [Service]
# Type=forking
# PIDFile=/var/run/ispdaemon.pid
# User=root
# Group=root
# WorkingDirectory=/usr/local/ispconfig
# ExecStart=/usr/local/ispconfig/server/scripts/start_server.pl --start
#
# Restart=on-failure
#
# [Install]
# WantedBy=multi-user.target
#===
use Getopt::Long;
use POSIX qw(setsid);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment