본문 바로가기

WEB Server&WAS/Apache

[Apache]CentOS 서비스 등록

[Unit]

Description=apache(httpd-2.4.26) daemon

After=syslog.target

After=network.target


[Service]

Type=forking

User=justpdh

Group=justpdh

ExecStart=/app/web/httpd-2.4.26/bin/apachectl start

ExecStop=/app/web/httpd-2.4.26/bin/apachectl stop

ExecReload=/app/web/httpd-2.4.26/bin/apachectl restart

PrivateTmp=true

LimitNOFILE=infinity


[Install]

WantedBy=multi-user.target