Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

Local.d

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
pacolotero
n00b
n00b
Posts: 29
Joined: Fri Apr 19, 2013 6:42 am

Local.d

  • Quote

Post by pacolotero » Wed Dec 10, 2014 11:27 am

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

Code: Select all

#!/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
Top
szatox
Advocate
Advocate
Posts: 3858
Joined: Tue Aug 27, 2013 12:35 pm

  • Quote

Post by szatox » Wed Dec 10, 2014 8:41 pm

u+x, is it owned by root or by you?
Top
pacolotero
n00b
n00b
Posts: 29
Joined: Fri Apr 19, 2013 6:42 am

  • Quote

Post by pacolotero » Thu Dec 11, 2014 7:17 am

By root
Top
szatox
Advocate
Advocate
Posts: 3858
Joined: Tue Aug 27, 2013 12:35 pm

  • Quote

Post by szatox » Thu Dec 11, 2014 7:12 pm

Ok, I have made a simple test, just to make sure:
# 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?
Top
Post Reply

4 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic