1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| ~]
[Unit] Description=Unit apache by linjiangyu Documentation=https://linjiangyu.com/apache After=network.target network-online.target remote-fs.target nss-lookup.target Wants=network-online.target
[Service] Type=forking PIDFile=/usr/local/apache2/logs/httpd.pid ExecStart=/usr/local/apache2/bin/httpd ExecReload=/bin/kill -s HUP $MAINPID ExecStop=/bin/kill -s TERM $MAINPID
[Install] WantedBy=multi-user.target END
|