Managing per-user rc.d init scripts

Posted by Steve Schnepp on Server Fault See other posts from Server Fault or by Steve Schnepp
Published on 2009-11-10T13:53:32Z Indexed on 2012/11/26 23:08 UTC
Read the original article Hit count: 327

Filed under:
|
|
|

I want to delegate SysV init scripts to each user.

Like the SysV init, each item in ${HOME}/rc.d starting with S will be launched on server start-up with the start argument. The same for the server shut-down with the one starting with K and with the stop argument.

I thought about scripting it myself, but maybe there is already some kind of implementation out there1. In summary it would be a script in /etc/init.d/ that iterates through all the users and launches runparts as the user on the relevant scripts.

The platform here is a Linux (Debian flavour), but I think the solution would be quite portable among various Unix-like platforms.

Update:

The point here is for users to be able to create their own init scripts that should be launch on their behalf when the system boots up. As Dan Carley pointed out, the services won't be able to access any system asset (priviledged ports, system logs, ...).

1. This way I don't have to think that much about all the subtle security implications such as script timeouts for example...

© Server Fault or respective owner

Related posts about linux

Related posts about init