[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Proper place to put a bootup script



I'm preparing a Debian package for portslave, and portslave has a script
(radinit) that needs to be run every time the system is booted to change the
RADIUS session ID.

The default location for this script is /etc/rc.boot.  Lintian, however,
complains:

E: portslave: package-installs-into-etc-rc.boot etc/rc.boot/radinit
N:
N:   The package installs files in the /etc/rc.boot directory, which is
N:   obsolete. See rc.boot(5) for details.
N:


The Debian Policy manual, section 3.3.2, it states:

The start, stop, restart, and force-reload options must be supported by all
scripts in /etc/init.d, the reload option is optional. 

Well, there's nothing this script does to actually START or STOP anything,
and there's nothing to RELOAD or RESTART... It simply changes contents of
/var/log/radsession.id.

Where is the proper place to put this init script?

Also... on a related note, where would the the proper place to put the
radsession.id file?  I'm thinking /var/log doesn't seem right.  Would it
make sense to create /var/portslave or keep that file in /var/run or
something?

Thanks for any help!


--
Useless fact #6: "Stewardesses" is the longest word that is typed with only
the left hand.
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  Jonathan Hall  *  jonhall@futureks.net  *  PGP public key available
 Systems Admin, Future Internet Services; Goessel, KS * (316) 367-2487
         http://www.futureks.net  *  PGP Key ID: FE 00 FD 51
                  -=  Running Debian GNU/Linux  =-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


Reply to: