[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#798430: apache2: please add systemd service file



Package: apache2
Severity: wishlist

Dear maintainers,

thanks for your work on this important pacakge. It's really appreciated.

Current apache2 package lacks of systemd service file (though is well
integrated with systemd due to glue scripts)

I would like to have a native systemd service file. Among other things,
we can benefit of:
 * systemd security features (i.e ProtectHome= and ProtectSystem= and more)
 * watchdog capabilities by systemd

There are lot of basic apache2 systemd service files in the net to get ideas for
debian one, for example (needs to be debianized, of course):

========= 8< =========
[Unit]
Description=Apache 2 HTTP Web Server
After=network.target

[Service]
Type=forking
EnvironmentFile=/etc/conf.d/apache2
ExecStart=/usr/sbin/apache2 -k start $APACHE2_OPTS
ExecStop=/usr/sbin/apache2 -k graceful-stop $APACHE2_OPTS
ExecReload=/usr/sbin/apache2 -k graceful $APACHE2_OPTS
PIDFile=/var/run/apache2.pid
StandardOutput=syslog
StandardError=syslog
Restart=always
ProtectHome=yes
ProtectSystem=full

[Install]
WantedBy=multi-user.target
WantedBy=http-daemon.target
========= 8< =========

best regards.


Reply to: