[mythtv-users] run script as root at startup

Brian J. Murrell brian at interlinx.bc.ca
Wed Aug 10 09:48:59 UTC 2011


On 11-08-10 05:41 AM, F P wrote:
> Now I need to run a script as root after the backend and wythwelcome has
> started.
> How can I do it?
> The script does a modprobe, starts oscam, sasc-ng, and restarts the backend.

Sounds like you need an initscript, which naturally runs as root
scheduled to run before the backend initscript.

Use the right tools for the right job.  Having the backend run a script
elevated to a privileged user that just ends up in the backend
restarting itself is simply the wrong tool.

b.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
Url : http://www.mythtv.org/pipermail/mythtv-users/attachments/20110810/b9aae079/attachment.bin 


More information about the mythtv-users mailing list