View previous topic :: View next topic |
Author |
Message |
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Thu Jan 31, 2013 1:44 am Post subject: systemd + apache = problems |
|
|
my unit file is not functioning correctly.... i had hijacked it from an arch pacman and formatted it to gentoo's links and so on.....
Code: |
mkultra@mksrv [ /etc/systemd/system ]$ cat httpd.service
[Unit]
Description=Apache Web Server
After=network.target remote-fs.target nss-lookup.target
[Service]
PIDFile=/run/httpd.pid
ExecStart=/usr/sbin/apache2ctl start
ExecStop=/usr/sbin/apache2ctl graceful-stop
ExecReload=/usr/sbin/apache2ctl graceful
[Install]
WantedBy=multi-user.target
|
for what its worth heres the original unformatted document
Code: |
[dok@codex system]$ cat httpd.service
[Unit]
Description=Apache Web Server
After=network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
PIDFile=/run/httpd/httpd.pid
ExecStart=/usr/sbin/apachectl start
ExecStop=/usr/sbin/apachectl graceful-stop
ExecReload=/usr/sbin/apachectl graceful
PrivateTmp=true
LimitNOFILE=infinity
[Install]
WantedBy=multi-user.target
|
(sorry if systemd is not supported and im posting in the wrong forum) |
|
Back to top |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Fri Feb 01, 2013 7:00 pm Post subject: |
|
|
bump bump bump.....
apache2ctl is just a file that points at the /etc/init.d/apache2 openrc boot script. |
|
Back to top |
|
|
Josef.95 Advocate
Joined: 03 Sep 2007 Posts: 4509 Location: Germany
|
Posted: Sun Jul 28, 2013 5:33 pm Post subject: |
|
|
Now you can use the unit file from apache Package itself
see Bug 466096 |
|
Back to top |
|
|
|