Guest User

Untitled

a guest
Jan 20th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.33 KB | None | 0 0
  1. ### BEGIN INIT INFO
  2. # Provides: myapp
  3. # Required-Start: $remote_fs $syslog $mysql $postfix
  4. # Required-Stop: $remote_fs $syslog $mysql $postfix
  5. # Should-Start:
  6. # Should-Stop:
  7. # Default-Start: 2 3 4 5
  8. # Default-Stop: 0 1 6
  9. # Short-Description: Starts myapp daemon processes
  10. # Description: Start myapp daemon : /opt/myapp/bin/myapp.pl
  11. ### END INIT INFO
  12.  
  13. root@raspberrypi:/var/log# systemctl disable myapp
  14. Synchronizing state for myapp.service with sysvinit using update-rc.d...
  15. Executing /usr/sbin/update-rc.d myapp defaults
  16. Executing /usr/sbin/update-rc.d myapp disable
  17. insserv: warning: current start runlevel(s) (empty) of script `myapp' overrides LSB defaults (2 3 4 5).
  18. insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `myapp' overrides LSB defaults (0 1 6).
  19.  
  20. root@raspberrypi:/var/log# systemctl enable myapp
  21. Synchronizing state for myapp.service with sysvinit using update-rc.d...
  22. Executing /usr/sbin/update-rc.d myapp defaults
  23. insserv: warning: current start runlevel(s) (empty) of script `myapp' overrides LSB defaults (2 3 4 5).
  24. insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `myapp' overrides LSB defaults (0 1 6).
  25. Executing /usr/sbin/update-rc.d myapp enable
  26.  
  27. root@raspberrypi:/var/log# runlevel
  28. N 5
  29.  
  30. root@raspberrypi:/var/log# ls -l /etc/rc5.d/
  31. total 4
  32. lrwxrwxrwx 1 root root 22 Sep 23 03:18 K01avahi-daemon -> ../init.d/avahi-daemon
  33. lrwxrwxrwx 1 root root 23 Jan 20 06:28 K01bind9myapp -> ../init.d/bind9myapp
  34. lrwxrwxrwx 1 root root 21 Dec 21 23:47 K01bind9ttdnsd -> ../init.d/bind9ttdnsd
  35. lrwxrwxrwx 1 root root 16 May 27 2016 K01dhcpcd -> ../init.d/dhcpcd
  36. lrwxrwxrwx 1 root root 17 Dec 21 06:13 K01privoxy -> ../init.d/privoxy
  37. lrwxrwxrwx 1 root root 16 Dec 21 06:11 K01ttdnsd -> ../init.d/ttdnsd
  38. lrwxrwxrwx 1 root root 18 Jan 20 06:46 K02redsocks -> ../init.d/redsocks
  39. lrwxrwxrwx 1 root root 13 Jan 19 14:15 K02tor -> ../init.d/tor
  40. lrwxrwxrwx 1 root root 15 Dec 21 06:11 K03bind9 -> ../init.d/bind9
  41. lrwxrwxrwx 1 root root 17 Sep 20 09:23 K03dnsmasq -> ../init.d/dnsmasq
  42. -rw-r--r-- 1 root root 677 Apr 6 2015 README
  43. lrwxrwxrwx 1 root root 18 May 27 2016 S01bootlogs -> ../init.d/bootlogs
  44. lrwxrwxrwx 1 root root 14 May 27 2016 S01motd -> ../init.d/motd
  45. lrwxrwxrwx 1 root root 17 May 27 2016 S01rsyslog -> ../init.d/rsyslog
  46. lrwxrwxrwx 1 root root 22 May 27 2016 S01triggerhappy -> ../init.d/triggerhappy
  47. lrwxrwxrwx 1 root root 17 Dec 21 06:11 S02apache2 -> ../init.d/apache2
  48. lrwxrwxrwx 1 root root 14 Dec 21 06:11 S03cron -> ../init.d/cron
  49. lrwxrwxrwx 1 root root 14 Dec 21 06:11 S03dbus -> ../init.d/dbus
  50. lrwxrwxrwx 1 root root 24 Dec 21 06:11 S03dphys-swapfile -> ../init.d/dphys-swapfile
  51. lrwxrwxrwx 1 root root 18 Jan 20 06:46 S03myapp -> ../init.d/myapp
  52. lrwxrwxrwx 1 root root 15 Dec 21 06:11 S03mysql -> ../init.d/mysql
  53. lrwxrwxrwx 1 root root 13 Dec 21 06:11 S03ntp -> ../init.d/ntp
  54. lrwxrwxrwx 1 root root 15 Dec 21 06:11 S03rsync -> ../init.d/rsync
  55. lrwxrwxrwx 1 root root 13 Dec 21 06:11 S03ssh -> ../init.d/ssh
  56. lrwxrwxrwx 1 root root 19 Aug 13 2016 S04bluetooth -> ../init.d/bluetooth
  57. lrwxrwxrwx 1 root root 17 Aug 23 2016 S04postfix -> ../init.d/postfix
  58. lrwxrwxrwx 1 root root 18 Dec 21 06:11 S05plymouth -> ../init.d/plymouth
  59. lrwxrwxrwx 1 root root 18 Dec 21 06:11 S05rc.local -> ../init.d/rc.local
  60. lrwxrwxrwx 1 root root 19 Dec 21 06:11 S05rmnologin -> ../init.d/rmnologin
Add Comment
Please, Sign In to add comment