Problem auto starti...
 
Notifications
Clear all

Problem auto starting. 9.0.0 ZEXTRAS and CentOS 8

2 Posts
2 Users
0 Reactions
2,498 Views
(@allxi)
Posts: 2
Topic starter
 

Hi.

9.0.0 ZEXTRAS and CentOS 8 Linux (4.18.0-193.28.1.el8_2.x86_64)
It has problem auto starting. (Two cases of installation from scratch)

Script /etc/rc.d/init.d/zimbra
● zimbra.service - LSB: Zimbra mail service
Loaded: loaded (/etc/rc.d/init.d/zimbra; generated)
Active: failed (Result: exit-code) since Tue 2020-12-08 11:43:08 EET; 2min 47s ago
Docs: man:systemd-sysv-generator(8)
Process: 1336 ExecStart=/etc/rc.d/init.d/zimbra start (code=exited, status=127)

Dec 08 11:43:08 systemd[1]: Starting LSB: Zimbra mail service...
Dec 08 11:43:08 zimbra[1336]: /etc/rc.d/init.d/zimbra: line 41: su: command not found
Dec 08 11:43:08 systemd[1]: zimbra.service: Control process exited, code=exited status=127
Dec 08 11:43:08 systemd[1]: zimbra.service: Failed with result 'exit-code'.
Dec 08 11:43:08 systemd[1]: Failed to start LSB: Zimbra mail service.

40,41 line

        # bug 45842
        su - zimbra -c "zmcontrol $1 </dev/null

If I change to "/bin/su" in line 41

systemctl status zimbra
Warning: The unit file, source configuration file or drop-ins of zimbra.service changed on disk. Run 'systemctl daemon-reload' to reload units.
● zimbra.service - LSB: Zimbra mail service
   Loaded: loaded (/etc/rc.d/init.d/zimbra; generated)
   Active: failed (Result: exit-code) since Sat 2020-12-05 22:46:47 EET; 15min ago
     Docs: man:systemd-sysv-generator(8)

Dec 05 22:46:47  systemd[1]: Starting LSB: Zimbra mail service...
Dec 05 22:46:47  zimbra[1345]: /etc/rc.d/init.d/zimbra: line 41: /bin/su: Permission denied
Dec 05 22:46:47  systemd[1]: zimbra.service: Control process exited, code=exited status=126
Dec 05 22:46:47  systemd[1]: zimbra.service: Failed with result 'exit-code'.
Dec 05 22:46:47  systemd[1]: Failed to start LSB: Zimbra mail service.

Found a similar case here.
https://forums.zimbra.org/viewtopic.php?f=15&t=68583&p=298599&hilit=startup#p298599


● zimbra.service - LSB: Zimbra mail service
Loaded: loaded (/etc/rc.d/init.d/zimbra; generated)
Active: failed (Result: exit-code) since Tue 2020-12-08 11:43:08 EET; 2min 47s ago
Docs: man:systemd-sysv-generator(8)
Process: 1336 ExecStart=/etc/rc.d/init.d/zimbra start (code=exited, status=127)

Dec 08 11:43:08 systemd[1]: Starting LSB: Zimbra mail service...
Dec 08 11:43:08 zimbra[1336]: /etc/rc.d/init.d/zimbra: line 41: su: command not found
Dec 08 11:43:08 systemd[1]: zimbra.service: Control process exited, code=exited status=127
Dec 08 11:43:08 systemd[1]: zimbra.service: Failed with result 'exit-code'.
Dec 08 11:43:08 systemd[1]: Failed to start LSB: Zimbra mail service.

40,41 line
# bug 45842
su - zimbra -c "zmcontrol $1 </dev/null
If I change to "/bin/su" in line 41

systemctl status zimbra
Warning: The unit file, source configuration file or drop-ins of zimbra.service changed on disk. Run 'systemctl daemon-reload' to reload units.
● zimbra.service - LSB: Zimbra mail service
   Loaded: loaded (/etc/rc.d/init.d/zimbra; generated)
   Active: failed (Result: exit-code) since Sat 2020-12-05 22:46:47 EET; 15min ago
     Docs: man:systemd-sysv-generator(8)

Dec 05 22:46:47  systemd[1]: Starting LSB: Zimbra mail service...
Dec 05 22:46:47  zimbra[1345]: /etc/rc.d/init.d/zimbra: line 41: /bin/su: Permission denied
Dec 05 22:46:47  systemd[1]: zimbra.service: Control process exited, code=exited status=126
Dec 05 22:46:47  systemd[1]: zimbra.service: Failed with result 'exit-code'.
Dec 05 22:46:47  systemd[1]: Failed to start LSB: Zimbra mail service.

Found a similar case here.
https://forums.zimbra.org/viewtopic.php?f=15&t=68583&p=298599&hilit=startup#p298599


# bug 45842
su - zimbra -c "zmcontrol $1 </dev/null

If I change to "/bin/su" in line 41

systemctl status zimbra
Warning: The unit file, source configuration file or drop-ins of zimbra.service changed on disk. Run 'systemctl daemon-reload' to reload units.
● zimbra.service - LSB: Zimbra mail service
Loaded: loaded (/etc/rc.d/init.d/zimbra; generated)
Active: failed (Result: exit-code) since Sat 2020-12-05 22:46:47 EET; 15min ago
Docs: man:systemd-sysv-generator(8)

Dec 05 22:46:47 systemd[1]: Starting LSB: Zimbra mail service...
Dec 05 22:46:47 zimbra[1345]: /etc/rc.d/init.d/zimbra: line 41: /bin/su: Permission denied
Dec 05 22:46:47 systemd[1]: zimbra.service: Control process exited, code=exited status=126
Dec 05 22:46:47 systemd[1]: zimbra.service: Failed with result 'exit-code'.
Dec 05 22:46:47 systemd[1]: Failed to start LSB: Zimbra mail service.

Found a similar case here.
https://forums.zimbra.org/viewtopic.php?f=15&t=68583&p=298599&hilit=startup#p298599

systemctl status zimbra
Warning: The unit file, source configuration file or drop-ins of zimbra.service changed on disk. Run 'systemctl daemon-reload' to reload units.
● zimbra.service - LSB: Zimbra mail service
Loaded: loaded (/etc/rc.d/init.d/zimbra; generated)
Active: failed (Result: exit-code) since Sat 2020-12-05 22:46:47 EET; 15min ago
Docs: man:systemd-sysv-generator(8)

Dec 05 22:46:47 systemd[1]: Starting LSB: Zimbra mail service...
Dec 05 22:46:47 zimbra[1345]: /etc/rc.d/init.d/zimbra: line 41: /bin/su: Permission denied
Dec 05 22:46:47 systemd[1]: zimbra.service: Control process exited, code=exited status=126
Dec 05 22:46:47 systemd[1]: zimbra.service: Failed with result 'exit-code'.
Dec 05 22:46:47 systemd[1]: Failed to start LSB: Zimbra mail service.

Found a similar case here.
https://forums.zimbra.org/viewtopic.php?f=15&t=68583&p=298599&hilit=startup#p298599

 
Posted : 12/08/2020 12:00
(@ndfan77)
Posts: 1
 

I ran into the same issue on Rocky Linux 8.  The issue is the Selinux permissions on /etc/rc.d/init.d/zimbra set by the Zimbra installer.  I resolved the problem by changing them to match another script that was already in that directory.

# list current selinux permissions
ls -Z /etc/rc.d/init.d/zimbra
# Fix them
chcon 'system_u:object_r:bin_t:s0' /etc/rc.d/init.d/zimbra
# and double-check to make sure.
ls -Z /etc/rc.d/init.d/zimbra
 
Posted : 10/14/2024 07:28