Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
systemd + apache = problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1241
Location: 42.68n 85.41w

PostPosted: Thu Jan 31, 2013 1:44 am    Post subject: systemd + apache = problems Reply with quote

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
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1241
Location: 42.68n 85.41w

PostPosted: Fri Feb 01, 2013 7:00 pm    Post subject: Reply with quote

bump bump bump.....

apache2ctl is just a file that points at the /etc/init.d/apache2 openrc boot script.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 2289
Location: Germany

PostPosted: Sun Jul 28, 2013 5:33 pm    Post subject: Reply with quote

Now you can use the unit file from apache Package itself
see Bug 466096
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum