HEX
Server: Apache
System: Linux 66-116-199-115.webhostbox.net 5.14.0-427.31.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 15 14:47:52 EDT 2024 x86_64
User: blushinc (1003)
PHP: 8.2.29
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