Skip to content

Instantly share code, notes, and snippets.

@hightemp
Created May 12, 2020 05:10
Show Gist options
  • Select an option

  • Save hightemp/71605e933e681306869a819b2173b393 to your computer and use it in GitHub Desktop.

Select an option

Save hightemp/71605e933e681306869a819b2173b393 to your computer and use it in GitHub Desktop.
multi service unit file
PORT=8000
PID_FILE=/etc/httpd/run/httpd1.pid
PORT=8001
PID_FILE=/etc/httpd/run/httpd2.pid
[Unit]
Description=The Apache HTTP Server
After=network.target remote-fs.target nss-lookup.target
Documentation=man:httpd(8)
Documentation=man:apachectl(8)
[Service]
Type=notify
EnvironmentFile=/etc/sysconfig/%I
ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND
ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
ExecStop=/bin/kill -WINCH ${MAINPID}
KillSignal=SIGCONT
PrivateTmp=true
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment