I'm trying to put together an SMF manifest + method scripts for starting
and stopping a service on some of our Solaris machines. Part of enabling
the services includes adding a few cron jobs... I'd like to be able to
do so inside the SMF scripts if possible.
Unfortunately, calling crontab inside an SMF method just results in the
error:
crontab: The audit context for your shell has not been set.
This happens on both the Solaris 11 machines and my OpenIndiana box. To
work around it, I've tried having my method 'su' and re-exec itself, or
even 'su -c'. Adding a "method_credential" to the manifest doesn't help.
Is there a way I can do this? Barring calling crontab to install a crontab,
can I manipulate the raw files in /var/spool/cron/crontabs (safely)?
--
Brandon Hume - hume -> BOFH.Ca,
http://WWW.BOFH.Ca/