Announcement

Collapse
No announcement yet.

init.d script doesn't start

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    init.d script doesn't start

    It worked well on 13.10 but not on 14.04. I suspect something in system has changed.

    I'm talking about sandfox script
    http://igurublog.wordpress.com/downl...cript-sandfox/

    When I do
    Code:
    sudo /etc/init.d/sandfox start
    it starts and works but only until I restart system. It fails to start at system boot.
    I don't understand why.

    Here are details.
    http://pastebin.com/1aP4A76z

    I only changed beginning

    Code:
    #!/bin/sh
    ### BEGIN INIT INFO
    # Provides: sandfox
    # Required-Start: $local_fs $network
    # Required-Stop: $local_fs
    # Default-Start: 2 3 4 5
    # Default-Stop: 0 1 6
    # Short-Description: sandfox
    # Description: Sandfox boot startup script for Ubuntu and similar
    ### END INIT INFO
    
    #!/bin/bash
    
    sandfoxuser=gnomek
    sandfoxprofile=firefox
    sandfoxbin=/usr/local/bin/sandfox
    according to last comment on blog, because there were problems with:
    Code:
    sudo update-rc.d sandfox defaults
    update-rc.d: warning: /etc/init.d/sandfox missing LSB information
    update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
     Adding system startup for /etc/init.d/sandfox ...
       /etc/rc0.d/K20sandfox -> ../init.d/sandfox
       /etc/rc1.d/K20sandfox -> ../init.d/sandfox
       /etc/rc6.d/K20sandfox -> ../init.d/sandfox
       /etc/rc2.d/S20sandfox -> ../init.d/sandfox
       /etc/rc3.d/S20sandfox -> ../init.d/sandfox
       /etc/rc4.d/S20sandfox -> ../init.d/sandfox
       /etc/rc5.d/S20sandfox -> ../init.d/sandfox
    I doesn't show after the change.

    I followed strictly guidelines when creating it:
    Code:
    sudo apt-get install inotify-tools lsof
    sudo install sandfox /usr/local/bin/sandfox
    sudo nano /etc/init.d/sandfox
    sudo chmod +x /etc/init.d/sandfox
    sudo update-rc.d sandfox defaults
    sudo sandfox firefox

    #2
    Did you add the script to upstart?

    Try:

    update-rc.d sandfox defaults

    then rebooting


    EDIT: Oops! Re-read your post. Sorry...
    Last edited by oshunluvr; Nov 13, 2014, 01:26 PM.

    Please Read Me

    Comment


      #3
      Actually this thread can be deleted. I tried many things to make it work and gave up, but then I found Firejail and I will use it instead of sandfox.

      Comment

      Working...
      X