Re: howto: write a init script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 31, 2008 at 02:31:06PM +0200, Christoph Höger wrote:
> Am Donnerstag, den 31.07.2008, 13:19 +0100 schrieb Chris G:
> > On Thu, Jul 31, 2008 at 02:05:39PM +0200, Christoph Höger wrote:
> > > Hi,
> > > 
> > > is there some documentation out there about how to write a init script
> > > for fedora9 for a given binary?
> > > Maybe even a "insert your binary here"-tempate?
> > > 
> > Most "binaries" (if by that you mean executable programs) don't really
> > need an "init script", they just run.  Enter the executable name on
> > the command line and the program springs into life.
> > 
> > Or am I musinderstanding you completely?  :-)
> > 
> > -- 
> > Chris Green
> > 
> 
> Yes, you do ;) , I need the binary to start when the machine boots up.

In that case you just add the line to run it (i.e. the name of the
executable, possibly with its full path) to /etc/rc.d/rc.local. 
That's exactly what rc.local is for.

If you want the whole 'start x' 'stop x' thing then just copy one of
the existing init scripts (as suggested by someone else).

-- 
Chris Green

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux