martin f krafft <[email protected]> writes:

> invoke-rc.d --query cron start
>
> This will return 104 if cron would be started in the current
> runlevel, which means that the init.d script symlink exists for the
> runlevel.
>
> If it returns 101 or 106, then cron is disabled by policy (but the
> init.d script exists).
>
> If it returns 100, then the init.d script does not exist.
>
> If it returns 105, then all bets are off.
>
> man invoke-rc.d

Oh, wow, I didn't know about that one.  Yeah, that would probably work.

-- 
Russ Allbery ([email protected])               <http://www.eyrie.org/~eagle/>



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to