View previous topic :: View next topic |
Author |
Message |
pacolotero n00b
Joined: 19 Apr 2013 Posts: 29
|
Posted: Wed Dec 10, 2014 11:27 am Post subject: Local.d |
|
|
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 |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3136
|
Posted: Wed Dec 10, 2014 8:41 pm Post subject: |
|
|
u+x, is it owned by root or by you? |
|
Back to top |
|
|
pacolotero n00b
Joined: 19 Apr 2013 Posts: 29
|
Posted: Thu Dec 11, 2014 7:17 am Post subject: |
|
|
By root |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3136
|
Posted: Thu Dec 11, 2014 7:12 pm Post subject: |
|
|
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 |
|
|
|