HEX
Server: Apache
System: Linux 65-254-81-60.cprapid.com 4.18.0-477.27.2.el8_8.x86_64 #1 SMP Fri Sep 29 08:21:01 EDT 2023 x86_64
User: roshanchandy (1003)
PHP: 8.4.12
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //etc/systemd/system/cpanel-onboot.service
[Unit]

Description=cPanel on Boot service
After=network.target network-online.target multi-user.target

[Service]
Type=oneshot

# run once per boot time
RemainAfterExit=yes
ExecStart=/bin/bash -c 'echo "$(/usr/bin/date +"[%%Y-%%m-%%d %%T %%z]") cpanel-onboot - service start (reboot detected)" >>/usr/local/cpanel/logs/error_log'
ExecStart=/usr/local/cpanel/libexec/cpanel-onboot
ExecStart=/bin/bash -c 'echo "$(/usr/bin/date +"[%%Y-%%m-%%d %%T %%z]") cpanel-onboot - service finished" >>/usr/local/cpanel/logs/error_log'

Environment="LANG=C"
Environment="LANGUAGE=C"
Environment="LC_ALL=C"
Environment="LC_MESSAGES=C"
Environment="LC_CTYPE=C"

[Install]
WantedBy=multi-user.target