[tpm] problem with perl programs as runlevel scripts

Liam R E Quin liam at holoweb.net
Sun Jan 4 14:39:38 PST 2009

On Sun, 2009-01-04 at 16:04 -0500, Fulko Hew wrote:

> The program works fine when you run it interactively, but it
> seems to be ignored when put in the /etc/rc5.d directory

You probably need it to be an actual shell script, although
that could call a perl program, or it could look like,

#! /bin/sh

/usr/bin/perl -w -e '
does not contain
any single quotes

Also make sure your script removes its lock file on
exit, from /var/lock/subsys/foo (if your script is
called S97foo then /etc/rc will probably look for
/var/lock/subsys/foo and foo.init)

If none of that works, try
service foo status
service foo start
Your perl script, remember, will be called with
an argument that's start, stop, status, suspend or resume
(again depending on the system perhaps).


Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org

More information about the toronto-pm mailing list