Here's the scenario . . .
I recently installed Mailarchiva on an SME Server 10.1 machine.
It was installed per the Step 2 instructions at:
https://help.mailarchiva.com/enterprise-linux-installThe Mailarchiva installation process copies its mailarchiva.service file to /etc/systemd/system/ and then issues the following commands:
chmod u+x /etc/systemd/system/mailarchiva.service
systemctl daemon-reload
systemctl enable mailarchiva
It then instructs the user . . .
to start service, type sudo systemctl start mailarchiva
to stop service, type sudo systemctl stop mailarchiva
Following the advice provided at:
https://wiki.koozali.org/MailArchivahttps://forums.koozali.org/index.php?topic=46754.0I issued the following commands . . .
config set mailarchiva service TCPPort 8090 access public status enabled
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S99mailarchiva
signal-event remoteaccess-update
(I elected to make my Mailarchiva implementation public rather than private)
Everything works fine
EXCEPT when rebooting the server.
With a standard reboot (shutdown -r now), the Mailarchiva configuration remains unfettered:
config show mailarchiva
mailarchiva=service
TCPPort=8090
access=public
status=enabled
Likewise, when the system requires a "signal-event post-upgrade; signal-event reboot" reboot, the configuration displays:
config show mailarchiva
mailarchiva=service
TCPPort=8090
access=public
status=enabled
In both reboot scenarios, however, the mailarchive.service does not start. Issuing the "systemctl status mailarchiva" command results in the following:
systemctl status mailarchiva
● mailarchiva.service - MailArchiva
Loaded: loaded (/etc/systemd/system/mailarchiva.service; enabled; vendor preset: enabled)
Active: inactive (dead)
I have to log in and run the following command to get things up and running . . .
systemctl start mailarchiva.service
When I issue the command, I'm greeted with . . .
systemctl status mailarchiva
● mailarchiva.service - MailArchiva
Loaded: loaded (/etc/systemd/system/mailarchiva.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2024-08-14 09:39:38 CDT; 11s ago
Process: 9494 ExecStart=/bin/sh /opt/mailarchiva/server/startserver (code=exited, status=0/SUCCESS)
Main PID: 9525 (java)
Memory: 396.5M
CGroup: /system.slice/mailarchiva.service
└─9525 /opt/mailarchiva/server/../jre64/bin/java -Djava.util.loggi...
Aug 14 09:39:37 <my.server.name> systemd[1]: Starting MailArchiva...
Aug 14 09:39:38 <my.server.name> mailarchiva[9494]: Tomcat started.
Aug 14 09:39:38 <my.server.name> systemd[1]: Started MailArchiva.
. . . and all is right with the world. I'm able to login at
http://my.server.name:8090I realize that the advice (see above) was for earlier versions of SMEserver and is probably no longer valid for my current version (10.2).
I'm sure there's something simple that I'm missing to get the mailarchiva service to initiate when the server boots, but I'm at a loss to know what it is.
If someone can steer me toward a solution, I will be indebted.
A copy of the mailarchiva.service file is viewable at:
https://lists2.roe3.org/mailarchiva.service.txtSidenote: I installed Mailarchiva on a Nethserver7 machine and it survives the reboot process (shutdown -r now) with no problem.
Regards,
Mark Drone
Regional Office of Education #3
Southeastern Illinois