[ubuntu-uk] Init Script fun
Neil Greenwood
neil.greenwood.lug at gmail.com
Wed Jun 30 08:43:08 BST 2010
On 29 June 2010 22:59, Rob Beard <rob at esdelle.co.uk> wrote:
> Thanks Al,
>
> I managed to get it working. I had to add the --user and then the
> username the process was running under to stop it. Basically it now
> starts the process as root, then changes to a different user.
>
> All seems to be working now when I try and start the init script from
> root from the shell, so it's getting there.
>
> Now I have to figure out why it won't start at boot (when entering
> runlevel 2). I've linked the init.d scripts into files
> S20icecast-stream1...2... and so on and even added them to /etc/rc.local
> but they're not starting at boot.
>
> Not to worry, I'm making progress. I'm going to call it a night now and
> look at it tomorrow after sleeping on it.
>
> Rob
>
I'd guess that at 20, a dependency hasn't been started which is why it
fails, but the init.d script still works.
I'd try renaming the link to use a higher number, something like
S75icecast-stream1, etc.
I've not looked at rc.local much, so I don't know why that fails.
Cofion/Regards,
Neil.
More information about the ubuntu-uk
mailing list