diff options
author | CoprDistGit <infra@openeuler.org> | 2024-02-02 12:03:31 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-02-02 12:03:31 +0000 |
commit | a12b5db2a95667c9a8affb404d5b5684cad488e4 (patch) | |
tree | 1114887c887a02562e246afc80785b03779f5ce3 /httpd@.service | |
parent | 234812b47987978dfc84e99bfdca4f5f4d6fbfa9 (diff) |
automatic import of httpd
Diffstat (limited to 'httpd@.service')
-rw-r--r-- | httpd@.service | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/httpd@.service b/httpd@.service new file mode 100644 index 0000000..c58ae88 --- /dev/null +++ b/httpd@.service @@ -0,0 +1,23 @@ +# This is a template for httpd instances. +# See httpd@.service(8) for more information. + +[Unit] +Description=The Apache HTTP Server +After=network.target remote-fs.target nss-lookup.target +Documentation=man:httpd@.service(8) + +[Service] +Type=notify +Environment=LANG=C +Environment=HTTPD_INSTANCE=%i +ExecStartPre=/bin/mkdir -m 710 -p /run/httpd/instance-%i +ExecStartPre=/bin/chown root.apache /run/httpd/instance-%i +ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND -f conf/%i.conf +ExecReload=/usr/sbin/httpd $OPTIONS -k graceful -f conf/%i.conf +# Send SIGWINCH for graceful stop +KillSignal=SIGWINCH +KillMode=mixed +PrivateTmp=true + +[Install] +WantedBy=multi-user.target |