Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Local.d
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
pacolotero
n00b
n00b


Joined: 19 Apr 2013
Posts: 29

PostPosted: Wed Dec 10, 2014 11:27 am    Post subject: Local.d Reply with quote

I have a script called php.start (u+x permission )in my local.d directory

Code:
#!/bin/env bash
chown nginx:nginx /var/run/spawn-fcgi -R

exit 0


But when I start my server, the script is not executed with local service start
Back to top
View user's profile Send private message
szatox
l33t
l33t


Joined: 27 Aug 2013
Posts: 716

PostPosted: Wed Dec 10, 2014 8:41 pm    Post subject: Reply with quote

u+x, is it owned by root or by you?
Back to top
View user's profile Send private message
pacolotero
n00b
n00b


Joined: 19 Apr 2013
Posts: 29

PostPosted: Thu Dec 11, 2014 7:17 am    Post subject: Reply with quote

By root
Back to top
View user's profile Send private message
szatox
l33t
l33t


Joined: 27 Aug 2013
Posts: 716

PostPosted: Thu Dec 11, 2014 7:12 pm    Post subject: Reply with quote

Ok, I have made a simple test, just to make sure:

Quote:
# echo '#! /bin/env bash
> touch /tmp/local.does.work' > /etc/local.d/tmp.start
# chmod u+x /etc/local.d/tmp.start
# /etc/init.d/local restart
* Stopping local [ ok ]
* Starting local [ ok ]
Quad build # ls /tmp/lo
local.does.work lost+found/

So, I followed your steps and it does work for me.
Do you have service "local" in your default runlevel?
Or maybe it is actually running, but you simply don't know about it?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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