Mark Berning
07/24/2023, 5:35 PMMark Berning
07/24/2023, 5:36 PMEvil Ware
07/24/2023, 5:54 PMMark Berning
07/24/2023, 6:34 PMThe service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
Then executing systemctl does have ColdFusion in the list but not jetty.
cf2021.service loaded active exited Adobe ColdFusion 2021
So I may have to manually add it.Evil Ware
07/24/2023, 6:49 PMJETTY_HOME=/opt/jetty
JETTY_BASE=/opt/jetty/my_base_r_belong_to_us
JETTY_USER=jettyjedi
JETTY_PORT=8080
JETTY_HOST=x.x.x.x
Evil Ware
07/24/2023, 6:53 PMMark Berning
07/24/2023, 9:02 PM/etc/init.d
directory sure enough there was a sym link cfjetty
to the cfjetty script in the jetty install directory.
So I issued:
chkconfig --add cfjetty
chkconfig cfjetty on
But after reboot it did not start.
I then tried but still did not work:
chkconfig --del cfjetty
chkconfig --add cfjetty
[root@Usslswebappd02 /etc]# ls -altr */*jetty*
lrwxrwxrwx 1 root root 41 Mar 27 09:03 init.d/cfjetty -> /app/coldfusion2021/cfusion/jetty/cfjetty
lrwxrwxrwx 1 root root 17 Jul 24 16:10 rc6.d/K14cfjetty -> ../init.d/cfjetty
lrwxrwxrwx 1 root root 17 Jul 24 16:10 rc1.d/K14cfjetty -> ../init.d/cfjetty
lrwxrwxrwx 1 root root 17 Jul 24 16:10 rc0.d/K14cfjetty -> ../init.d/cfjetty
lrwxrwxrwx 1 root root 17 Jul 24 16:11 rc4.d/S90cfjetty -> ../init.d/cfjetty
lrwxrwxrwx 1 root root 17 Jul 24 16:11 rc3.d/S90cfjetty -> ../init.d/cfjetty
lrwxrwxrwx 1 root root 17 Jul 24 16:11 rc2.d/S90cfjetty -> ../init.d/cfjetty
lrwxrwxrwx 1 root root 17 Jul 24 16:11 rc5.d/S90cfjetty -> ../init.d/cfjetty
[root@Usslswebappd02 /etc]# chkconfig --list cfjetty
Note: This output shows SysV services only and does not include native
systemd services. SysV configuration data might be overridden by native
systemd configuration.
If you want to list systemd services use 'systemctl list-unit-files'.
To see services enabled on particular target use
'systemctl list-dependencies [target]'.
cfjetty 0:off 1:off 2:off 3:on 4:on 5:on 6:off
When I did service cfjetty start
it starts and works
Eventually I looked at dmesg and was getting an error:
systemd-sysv-generator[606]: stat() failed on /etc/rc.d/init.d/cfjetty: No such file or directory
Eventually I copied the cfjetty script (instead of sym link) into the /etc/init.d directory and it worked after reboot!!!!!
I just got to remember to copy the script again if there are any updates ARGH!
So either a permissions or a file system issue during boot up.
my_base_r_belong_to_us - 🤣🤣🤣Evil Ware
07/25/2023, 12:26 PM