On Wed, Dec 06, 2000 at 10:15:42PM +1100, Hamish Moffatt wrote: > On Wed, Dec 06, 2000 at 01:44:47AM -0900, Ethan Benson wrote: > > ugh, that clutters the logs, start-stop-daemon --chuid is a better > > option for starting daemons nonprivileged IMO. > > Hmm. Can this be used to start non-daemon things that need to be > run during startup? In the cnews package, I need to run a clean > up script as user 'news', and it runs from rcS.d, before syslog > is running, so the log from 'su' goes to the console (ugly). certainly, you can run anything with start-stop-daemon: [eb@socrates tmp]$ /sbin/start-stop-daemon --start --exec /bin/ls -- -ld /tmp drwxrwxrwt 5 root root 2048 Dec 6 03:15 /tmp [eb@socrates tmp]$ -- Ethan Benson http://www.alaska.net/~erbenson/
Attachment:
pgpd1mXCXuEg_.pgp
Description: PGP signature