-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I have written a InitNG .i file to start saslauthd. Perhaps someone finds it
useful.
I use my own system to tweak the startup scripts, it is a very djb style way
of doing configuration. But I think the files are self-explainatory.
Greetings,
Eric
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD4DBQFFpBZjMpEdE19y46cRAm4EAKDEkrwKcp/j2bCCHHo4p5U63CyJTgCYtBgr
S7hKm4y0UcspZBUxywVEFQ==
=KO+r
-----END PGP SIGNATURE-----
#!/sbin/itype
daemon daemon/saslauthd {
need = virtual/net system/bootmisc
script daemon = {
# Read options
opts='-d'
# options with value first
[ -r "/etc/conf.d/cyrus-sasl/authd_authmech" ] \
&& opts="$opts -a $(<
/etc/conf.d/cyrus-sasl/authd_authmech)"
[ -r "/etc/conf.d/cyrus-sasl/authd_numprocesses" ] \
&& opts="$opts -n $(< /etc/conf.d/cyrus-sasl/authd_numprocesses)"
[ -r "/etc/conf.d/cyrus-sasl/authd_workingdir" ] \
&& opts="$opts -m $(< /etc/conf.d/cyrus-sasl/authd_workingdir)"
# Now boolean options
[ -e "/etc/conf.d/cyrus-sasl/authd_docredentialscaching" ] \
&& opts="$opts -c"
[ -e "/etc/conf.d/cyrus-sasl/authd_docacceptlocking" ] \
&& opts="$opts -l"
# Whatever else there may be, add it here
[ -e "/etc/conf.d/cyrus-sasl/authd_options" ] \
&& opts="$opts $(<
/etc/conf.d/cyrus-sasl/authd_options)"
exec /usr/sbin/saslauthd "$opts"
};
}
--
_______________________________________________
Initng mailing list
[email protected]
http://jw.dyndns.org/mailman/listinfo/initng