home Mail List
Info
Info
Meetings
Goals
Upcoming
Projects
FAQ
Security
Links

[Date Prev][Date Next] [Chronological] [Thread] [Top]

[NMLUG] Debian Startup Script



On Wed, 2004-10-06 at 08:30 -0700, Tim Emerick wrote:
> Thanks for the pointers.  I like the idea of setuid.  Works just as
> described.  In my case I'm trying to make sure this prog runs as a
> regular user instead of root.  I plan on having it start at
> boot.....if I can just figure out how.  <grin>


You put the script in /etc/init.d an then need a specially named symlink
in the right /etc/rc* directory.
There's a tool called updaterc that can set this up; but the syntax is a
bear so I just make symlinks by hand.

# ln -s /etc/init.d/boinc /etc/rcS.d/S20boinc

where 20 is greater
than /etc/rcS.d/S<anything_that_should_happen_before_boinc>
and less than /etc/rcS.d/S<anything_that_should_happen_after_boinc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.b9.com/pipermail/nmlug/attachments/20041006/3bb1d1fe/attachment.pgp



Please send sugestions and comments to webmaster@nmlug.org.
Valid XHTML 1.1! Valid CSS! Powered by Debian Powered by Apache