February 28, 2019
coldfusion 2016 Rhel7
Comments
(1)
February 28, 2019
coldfusion 2016 Rhel7
Newbie 1 posts
Followers: 0 people
(1)

How do you start coldfusion_2016 on reboot or server boot?

I’ve tried to use :

[root@awscfwtl1 init.d]# systemctl enable coldfusion_2016
coldfusion_2016.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig coldfusion_2016 on
[root@awscfwtl1 init.d]# systemctl status coldfusion_2016
● coldfusion_2016.service – SYSV: starts the ColdFusion server
Loaded: loaded (/etc/rc.d/init.d/coldfusion_2016; bad; vendor preset: disabled)
Active: active (running) since Thu 2019-02-28 06:05:28 EST; 10h ago
Docs: man:systemd-sysv-generator(8)
CGroup: /system.slice/coldfusion_2016.service
└─3426 /app/coldfusion2016/jre/bin/java -classpath /app/coldfusion2016/cfusion/runtime/bin/tomcat-juli.jar:/app/coldfusion2016/cfusion/bin/cf-boot…

Feb 28 06:05:21 awscfwtl1 coldfusion_2016[3294]: Starting ColdFusion 2016 server …
Feb 28 06:05:21 awscfwtl1 runuser[3408]: pam_unix(runuser:session): session opened for user deploy by (uid=0)
Feb 28 06:05:21 awscfwtl1 runuser[3408]: pam_unix(runuser:session): session closed for user deploy
Feb 28 06:05:21 awscfwtl1 coldfusion_2016[3294]: The ColdFusion 2016 server is starting up and will be available shortly.
Feb 28 06:05:22 awscfwtl1 Riverbed-Process-Injection[3426]: Process moniker Java_com.adobe.coldfusion.bootstrap.Bootstrap is configured for instrument…g file.
Feb 28 06:05:28 awscfwtl1 systemd[1]: Started SYSV: starts the ColdFusion server.
Feb 28 06:05:28 awscfwtl1 coldfusion_2016[3294]: ======================================================================
Feb 28 06:05:28 awscfwtl1 coldfusion_2016[3294]: ColdFusion 2016 server has been started.
Feb 28 06:05:28 awscfwtl1 coldfusion_2016[3294]: ColdFusion 2016 will write logs to /app/coldfusion2016/cfusion/logs/coldfusion-out.log
Feb 28 06:05:28 awscfwtl1 coldfusion_2016[3294]: ======================================================================
Hint: Some lines were ellipsized, use -l to show in full

which doesn’t work, the server boots and it doesn’t load automatically

[root@awscfwtl1 init.d]# chkconfig –add httpd
[root@awscfwtl1 init.d]# chkconfig httpd on
Note: Forwarding request to ‘systemctl enable httpd.service’.
[root@awscfwtl1 init.d]# chkconfig –list httpd

httpd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
again this doesn’t work and requires a manual start of the cf instances.

1 Comment
2019-03-06 03:21:51
2019-03-06 03:21:51

# cat /etc/rc.d/init.d/coldfusion_2016
cat: /etc/rc.d/init.d/coldfusion_2016: No such file or directory

# cat /etc/systemd/system/cf2016.service
[Unit]
Description=Adobe ColdFusion 2016
After=multi-user.target

[Service]
Type=forking
ExecStart=/app/coldfusion2016/cfusion/bin/sysinit start
ExecStop=/app/coldfusion2016/cfusion/bin/sysinit stop

[Install]
WantedBy=multi-user.target

# chmod 755 /etc/systemd/system/cf2016.service
# systemctl daemon-reload
# systemctl enable cf2016.service

Like
Add Comment