Re: Start script

2012-02-24 Thread James Wilkinson
Mikkel L. Ellertson wrote: > One other thing - homer the TMP variable. Not so much for system > programs, but for user programs. I have a tmp directory as part of > /etc/skel, so every user gets a tmp directory as part of their home > directory structurer. The I set TMP as part of the login script.

Re: Start script

2012-02-21 Thread Mikkel L. Ellertson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/20/2012 06:00 PM, Dave Ihnat wrote: > On Mon, Feb 20, 2012 at 11:38:49PM +0100, suvayu ali wrote: >> Or use tmpwatch to do the cleaning. > > A good suggestion. I would also point out a warning to developers--of both > compiled programs and scrip

Re: Start script

2012-02-20 Thread Dave Ihnat
On Mon, Feb 20, 2012 at 11:38:49PM +0100, suvayu ali wrote: > Or use tmpwatch to do the cleaning. A good suggestion. I would also point out a warning to developers--of both compiled programs and scripts. It's a poor program or script that creates files in /tmp or /usr/tmp and doesn't take approp

Re: Start script

2012-02-20 Thread suvayu ali
On Mon, Feb 20, 2012 at 23:28, Cameron Simpson wrote: > /tmp /cleaning stuff must happen as the very first thing in a system (if > it happens at all). NOT as part of some random start/stop script that > may run at any time (including long after the system starts, if you shut > the service down and

Re: Start script

2012-02-20 Thread Alan Cox
On Tue, 21 Feb 2012 09:28:12 +1100 Cameron Simpson wrote: > On 20Feb2012 13:29, Fedora Linux wrote: > | I created a script > [...] > | rm -fr /tmp/* > | rm -fr /tmp/.* > > Just a remark. DO NOT DO THIS! > > Other program may well have stuff in /tmp active by the time your script > runs. It MUS

Re: Start script

2012-02-20 Thread Cameron Simpson
On 20Feb2012 13:29, Fedora Linux wrote: | I created a script [...] | rm -fr /tmp/* | rm -fr /tmp/.* Just a remark. DO NOT DO THIS! Other program may well have stuff in /tmp active by the time your script runs. It MUST NOT blow things away in a careless and untargeted way like this. /tmp /cleani

Re: Start script

2012-02-20 Thread Steven Stern
On 02/20/2012 01:29 PM, Fedora Linux wrote: > Hello friends > > I have a doubt about how to make a start script to launche services and > do some stuff every time that fedora boots... > > I created a script > > > /etc/rc.d/init.d/MyStartupScript rwxr-xr-x >

Start script

2012-02-20 Thread Fedora Linux
Hello friends I have a doubt about how to make a start script to launche services and do some stuff every time that fedora boots... I created a script /etc/rc.d/init.d/MyStartupScript rwxr-xr-x rm -fr /tmp/* rm -fr /tmp/.* mysqld_safe --user=mysql & but it simply does nothing... I