Skip to content

Instantly share code, notes, and snippets.

@raku-cat
Created September 5, 2016 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raku-cat/bcd018e209c167b47686f53358dcc8b3 to your computer and use it in GitHub Desktop.
Save raku-cat/bcd018e209c167b47686f53358dcc8b3 to your computer and use it in GitHub Desktop.
+ RUNLEVELHELPER=/sbin/runlevel
+ POLICYHELPER=/usr/sbin/policy-rc.d
+ INITDPREFIX=/etc/init.d/
+ RCDPREFIX=/etc/rc
+ BEQUIET=
+ MODE=
+ ACTION=
+ FALLBACK=
+ NOFALLBACK=
+ FORCE=
+ RETRY=
+ RETURNFAILURE=
+ RC=
+ is_upstart=
+ is_systemd=
+ set +e
+ test 2 -eq 0
+ state=I
+ test 2 -gt 0
+ test I '!=' III
+ case "$1" in
+ case ${state} in
+ verifyparameter bitlbee
+ test 1 -eq 0
+ test 1 -ne 1
+ return
+ INITSCRIPTID=bitlbee
+ state=II
+ shift
+ test 1 -gt 0
+ test II '!=' III
+ case "$1" in
+ case ${state} in
+ verifyparameter restart
+ test 1 -eq 0
+ test 1 -ne 1
+ return
+ ACTION=restart
+ state=III
+ shift
+ test 0 -gt 0
+ test III '!=' III
+ case ${ACTION} in
+ unset UPSTART_SESSION
+ which initctl
+ test -d /run/systemd/system
+ is_systemd=1
+ UNIT=bitlbee.service
++ /sbin/runlevel
++ sed 's/.*\ //'
+ RL=3
+ test '!' 0
+ test x3 = x0
+ test x3 = x6
+ test x3 = x0
+ test x3 = x6
+ test x3 '!=' x
++ xargs
++ ls -d -Q '/etc/rc3.d/S[0-9][0-9]bitlbee'
+ SLINK=
++ xargs
++ ls -d -Q '/etc/rc3.d/K[0-9][0-9]bitlbee'
+ KLINK=
++ xargs
++ ls -d -Q '/etc/rcS.d/S[0-9][0-9]bitlbee'
+ SSLINK=
+ verifyrclink
+ doexit=
+ test 0 -gt 0
+ test x '!=' x
+ return 0
+ RC=
+ case ${ACTION} in
+ testexec
+ test 0 -gt 0
+ return 1
+ testexec
+ test 0 -gt 0
+ return 1
+ testexec
+ test 0 -gt 0
+ return 1
+ _executable=
+ '[' -n '' ']'
+ '[' -n 1 ']'
++ systemctl -p LoadState show bitlbee.service
+ _state=LoadState=loaded
+ '[' LoadState=loaded '!=' LoadState=masked ']'
+ _executable=1
+ '[' 1 = 1 ']'
+ test x = x
+ test x = xquery
+ querypolicy
+ policyaction=restart
+ test x = x101
+ test x/usr/sbin/policy-rc.d '!=' x
+ test -x /usr/sbin/policy-rc.d
+ test x = x
+ RC=104
+ return
+ case ${RC} in
+ test x = xquery
+ '[' -n '' ']'
+ test x '!=' x
+ test 104 -eq 104
+ '[' -n '' ']'
+ testexec /etc/init.d/bitlbee
+ test 1 -gt 0
+ test -x /etc/init.d/bitlbee
+ shift
+ test 0 -gt 0
+ return 1
+ exit 102
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment