Skip to main content
chrisi34620081
Participant
December 23, 2019
Question

Coldfusion 2018 systemd setup

  • December 23, 2019
  • 1 reply
  • 2251 views

I'm looking for instruction for setting up CF2018 as a systemd service.  I found a script called cf-init-run.sh and it created the service file but the file that the service file references "sysinit" does not exist.  

 

Any idea as to how this file gets created or if it's other file renamed ?  Or perhaps another script that is supposed to create it.

Any help would be greatly apperciated.  Thank you

This topic has been closed for replies.

1 reply

Participant
December 30, 2019

You didn't specify what OS you are running, but with RedHat, the systemd script is, by default (if selected during installation), linked to /etc/systemd/system/cf2018.service. You may need to simply execute 'systemctl enable cf2018'.

 

You can always manually create the script and enable it:

[Unit]
Description=Adobe ColdFusion 2018
After=multi-user.target

[Service]
ExecStart=[install path]/cfusion/bin/../bin/sysinit start
ExecStop=[install path]/cfusion/bin/../bin/sysinit stop
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

 

These links may help:

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/sect-managing_services_with_systemd-unit_files

https://wiki.ubuntu.com/SystemdForUpstartUsers

chrisi34620081
Participant
December 30, 2019

OS is SUSE 15 SP1,  The systemd script is not the problem.  The program it execute is.  sysinit  does not exist on my install.  I have no idea why it's missing or how to create if that is required.

Participant
December 30, 2019

The sysinit was deprecated with version 12: https://www.suse.com/media/white-paper/systemd_in_suse_linux_enterprise_12_white_paper.pdf

 

Perhaps there is some confusion about the 'sysinit' script provided by ColdFusion ($CF_DIR/bin/sysinit) which is copied to the appropriate startup directory vs the OS sysinit command. For suse, I believe the init scripts are located at /etc/init.d/.

 

When you look at the contents of /etc/init.d, do you see a ColdFusion script? If so, what does the 'systemctl status [script name]' return? If there is no script, try copying '$CF_DIR/bin/sysinit' to '/etc/init.d' and executing 'systemctl start [script name]'.