[Pm-utils] services

Richard Hughes hughsient at gmail.com
Thu Apr 27 01:17:02 PDT 2006

Currently in pm/functions:stopservice() we use:

/sbin/service "$1" stop

Which is very Redhat specific. How do we do the same thing (starting and
stopping services) on Suse, Ubuntu, Debian etc?

We should just add a check for /etc/$distro$-release and use the right
script IMO.


More information about the Pm-utils mailing list