Bug#791814: sasl2-bin: fails to start saslauthd

chaouche yacine yacinechaouche at yahoo.com
Tue Mar 29 09:40:55 UTC 2016


So the reason it seems is with the autogenerated systemd script at /run/systemd/generator.late/saslauthd.service. If I put this script in /etc/systemd/system/saslauthd.service I can launch saslauthd with systemd (via service saslauthd start or /etc/init.d/saslauthd start) and it runs fine : 

============================
[Unit]
SourcePath=/etc/init.d/saslauthd
Description=LSB: saslauthd startup script
Before=runlevel2.target runlevel3.target runlevel4.target runlevel5.target shutdown.target
After=local-fs.target remote-fs.target
Conflicts=shutdown.target

[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
#KillMode=process
#GuessMainPID=no
#RemainAfterExit=yes
SysVStartPriority=1
ExecStart=/usr/sbin/saslauthd -a rimap -c -m /var/run/saslauthd -O localhost -n 5
#ExecStop=/bin/kill $MAINPID
ExecReload=reload

============================

Many thanks to grawity for great help over at #systemd on freenode. This systemd script needs to be rewritten by someone with some experience to get it working with values taken from the default configuration file (/etc/default/saslauthd.conf) instead of hardwiring them in the script like I did. Here's a trace : 


===============================================================================================
root at messagerie[10.10.10.20] ~ # service saslauthd start
Warning: Unit file of saslauthd.service changed on disk, 'systemctl daemon-reload' recommended.
root at messagerie[10.10.10.20] ~ # service saslauthd status
● saslauthd.service - LSB: saslauthd startup script
Loaded: loaded (/etc/init.d/saslauthd; static)
Active: active (running) since Tue 2016-03-29 10:38:29 CET; 1s ago
Process: 8842 ExecStop=/etc/init.d/saslauthd stop (code=exited, status=0/SUCCESS)
Process: 8885 ExecStart=/etc/init.d/saslauthd start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/saslauthd.service
├─8906 /usr/sbin/saslauthd -a rimap -c -m /var/run/saslauthd -O lo...
├─8907 /usr/sbin/saslauthd -a rimap -c -m /var/run/saslauthd -O lo...
├─8908 /usr/sbin/saslauthd -a rimap -c -m /var/run/saslauthd -O lo...
├─8909 /usr/sbin/saslauthd -a rimap -c -m /var/run/saslauthd -O lo...
└─8910 /usr/sbin/saslauthd -a rimap -c -m /var/run/saslauthd -O lo...

Mar 29 10:38:29 messagerie saslauthd[8885]: this should not be printed
Mar 29 10:38:29 messagerie saslauthd[8906]: detach_tty      : master pid is:...6
Mar 29 10:38:29 messagerie saslauthd[8906]: ipc_init        : listening on s...x
Mar 29 10:38:29 messagerie saslauthd[8885]: Starting SASL Authentication Dae....

Warning: Unit file changed on disk, 'systemctl daemon-reload' recommended.
Hint: Some lines were ellipsized, use -l to show in full.
root at messagerie[10.10.10.20] ~ # service saslauthd stop
Warning: Unit file of saslauthd.service changed on disk, 'systemctl daemon-reload' recommended.
root at messagerie[10.10.10.20] ~ # service saslauthd status
● saslauthd.service - LSB: saslauthd startup script
Loaded: loaded (/etc/init.d/saslauthd; static)
Active: inactive (dead) since Tue 2016-03-29 10:38:50 CET; 1s ago
Process: 8934 ExecStop=/etc/init.d/saslauthd stop (code=exited, status=0/SUCCESS)
Process: 8885 ExecStart=/etc/init.d/saslauthd start (code=exited, status=0/SUCCESS)

Mar 29 10:38:29 messagerie saslauthd[8885]: this should not be printed
Mar 29 10:38:29 messagerie saslauthd[8906]: detach_tty      : master pid is:...6
Mar 29 10:38:29 messagerie saslauthd[8906]: ipc_init        : listening on s...x
Mar 29 10:38:29 messagerie saslauthd[8885]: Starting SASL Authentication Dae....
Mar 29 10:38:50 messagerie saslauthd[8934]: this should not be printed
Mar 29 10:38:50 messagerie saslauthd[8934]: Stopping SASL Authentication Dae....

Warning: Unit file changed on disk, 'systemctl daemon-reload' recommended.
Hint: Some lines were ellipsized, use -l to show in full.
root at messagerie[10.10.10.20] ~ # pgrep saslauthd
root at messagerie[10.10.10.20] ~ #
===============================================================================================



More information about the Pkg-cyrus-sasl2-debian-devel mailing list