OXIESEC PANEL
- Current Dir:
/
/
snap
/
core
/
17200
/
lib
/
lsb
/
init-functions.d
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/18/2024 07:58:20 PM
rwxr-xr-x
📄
01-upstart-lsb
965 bytes
01/10/2016 11:29:46 AM
rw-r--r--
📄
20-left-info-blocks
1.06 KB
08/28/2014 11:04:48 PM
rw-r--r--
📄
40-systemd
2.53 KB
04/02/2021 02:39:40 AM
rw-r--r--
📄
50-ubuntu-logging
3.37 KB
05/27/2014 02:13:24 PM
rw-r--r--
Editing: 01-upstart-lsb
Close
# Allow executing init.d scripts as upstart jobs # Operate against system upstart, not session unset UPSTART_SESSION # Bail if there is an upstart job, and called via RC _RC_SCRIPT=${0#/etc/rc?.d/[KS]??*} if [ -r "/etc/init/${_RC_SCRIPT}.conf" ] && which initctl >/dev/null \ && initctl version 2>/dev/null | grep -q upstart then exit 0 fi _UPSTART_JOB=${0#/etc/init.d/} if [ -r "/etc/init/${_UPSTART_JOB}.conf" ] && which initctl >/dev/null \ && initctl version 2>/dev/null | grep -q upstart \ && initctl status ${_UPSTART_JOB} 2>/dev/null 1>/dev/null then # Upstart configuration exists for this job and we're running under upstart case "${1:-}" in start|stop|status|reload) # Action is a valid upstart action exec ${1} ${_UPSTART_JOB} ;; restart|force-reload) # Map restart to the usual sysvinit behavior. stop ${_UPSTART_JOB} || : exec start ${_UPSTART_JOB} ;; esac fi