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