new bash-based init-script

Offtopic. Everything that does not belong to PHC or PHCTool.
Post Reply
the-fallen
Administrator
Posts: 346
Joined: Wed 9. Jul 2008, 19:57

new bash-based init-script

Post by the-fallen » Wed 18. Feb 2009, 12:52

I have created a bash-based init script that is compatible to our config new files.

To make it as easy as possible to new users to insall it i want to create an installer script.

This script will copy the script to <where??> and add a link to the rcX.ds.

So where would be the standart installation target? /etc/init.d ???
To what Runlevels it should be linked? 2, 3, 4 and 5 to start and 0, 1, 6 to stop?

tntprog
Posts: 16
Joined: Wed 7. Jan 2009, 02:23

Re: new bash-based init-script

Post by tntprog » Tue 7. Apr 2009, 19:46

So where would be the standart installation target? /etc/init.d ???

I think this is a good place. That's where that kind of scripts are located, right?
To what Runlevels it should be linked? 2, 3, 4 and 5 to start and 0, 1, 6 to stop?

It depends on each distro. But the quicker Linux PHC is launched, the higher energy is saved. Maybe we could write a different file for each distro? That's not so huge.

the-fallen
Administrator
Posts: 346
Joined: Wed 9. Jul 2008, 19:57

Re: new bash-based init-script

Post by the-fallen » Tue 7. Apr 2009, 21:09

Yeah I am already using my own suggested parameters :)

See init / autostart scripts Subforum.
But the user can change settings using my simple installer script.

Post Reply