SLEs 12. We use a webapp called alfresco. During installation alfresco asks if you want to install a service, we answered yes but it does not start at boot. I suspect it is because of SLES 12 using system. How do we start this webapp at boot using system? I ran systemctl enable alfresco.service but that does not start alfresco at boot. I manually start alfresco by cd /opt/alfresco then ./alfresco.sh start. There is also an alfresco script in /etc/init.d
Hi
Create a simple systemd sevice file pointing at the init file
in /etc/systemd/system called alfresco.service
# /etc/systemd/system/alfresco.service
#
[Unit]
Description=Start the alfresco web service
[Service]
Type=forking
ExecStart=/bin/sh -c "/etc/init.d/alfresco start"
ExecStop=/bin/sh -c "/etc/init.d/alfresco stop"
[Install]
WantedBy=multi-user.target
Then start, check and then finally enable if all ok;
systemctl start alfresco.service
systemctl status alfresco.service
(if all ok, then enable to start on a reboot)
systemctl enable alfresco.service
–
Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.36-38-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!
[QUOTE=malcolmlewis;26243]Hi
Create a simple systemd sevice file pointing at the init file
in /etc/systemd/system called alfresco.service
# /etc/systemd/system/alfresco.service
#
[Unit]
Description=Start the alfresco web service
[Service]
Type=forking
ExecStart=/bin/sh -c "/etc/init.d/alfresco start"
ExecStop=/bin/sh -c "/etc/init.d/alfresco stop"
[Install]
WantedBy=multi-user.target
Then start, check and then finally enable if all ok;
systemctl start alfresco.service
systemctl status alfresco.service
(if all ok, then enable to start on a reboot)
systemctl enable alfresco.service
[QUOTE]
Worked like a charm. Thank you Malcolm