Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #168757

Re: Linux startup, Wheezy -- a required script won't run on startup, but can run manually without any trouble

From Dan Purgert <dan@djph.net>
Newsgroups linux.debian.user
Subject Re: Linux startup, Wheezy -- a required script won't run on startup, but can run manually without any trouble
Date 2016-06-09 22:30 +0200
Message-ID <rIeKu-2SW-11@gated-at.bofh.it> (permalink)
References <rIcfD-18x-3@gated-at.bofh.it> <rIdEK-2bK-13@gated-at.bofh.it> <rIdOp-2fC-9@gated-at.bofh.it>
Organization A noiseless patient Spider

Show all headers | View raw


Andrew McGlashan wrote:
> On 10/06/2016 5:06 AM, Dan Purgert wrote:
>> Andrew McGlashan wrote:
>>> [snip]
>>> Now, I want the archiving script to run on system startup, I don't
>>> want dovecot or exim4 to be running when the script starts, it
>>> simply needs to have the /backup and /var file systems mounted to do
>>> it's required job
>>
>> Looks like it might also need syslog running...
>
> Perhaps, but why?  I'm not asking it to log anything to syslog; just to
> create it's own log file in the /var/log directory.

Just going off the comments at the top -- states "required-start:
$syslog".  Although, I suppose that you could've just forgotten to
remove that bit.

> [snip]
> Weird artifcat of something (perhaps GPG due to signing?), my copy as
> sent to the list is clean.  The script works perfectly if ran with an
> interactive shell; right now the script isn't destructive, so I can run
> it as many times as I like and it works fine.  The plan is to adjust the
> script, I think you can see how, but not until it works as expected.

How are you calling it while logged in?  I'm starting to wonder if it's
a difference between [da]sh and bash (or whatever your standard login
shell is).  

Also, not entirely sure what the 'VER=$x" assignment is doing, as you
don't seem to read $VER anywhere else.

-- 
|_|O|_| Registered Linux user #585947
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| 

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Linux startup, Wheezy -- a required script won't run on startup, but  can run manually without any trouble Andrew McGlashan <andrew.mcglashan@affinityvision.com.au> - 2016-06-09 19:50 +0200
  Re: Linux startup, Wheezy -- a required script won't run on  startup, but  can run manually without any trouble Dan Purgert <dan@djph.net> - 2016-06-09 21:20 +0200
    Re: Linux startup, Wheezy -- a required script won't run on startup,  but can run manually without any trouble Andrew McGlashan <andrew.mcglashan@affinityvision.com.au> - 2016-06-09 21:30 +0200
      Re: Linux startup, Wheezy -- a required script won't run on  startup,  but can run manually without any trouble Dan Purgert <dan@djph.net> - 2016-06-09 22:30 +0200
        Re: Linux startup, Wheezy -- a required script won't run on startup,  but can run manually without any trouble Andrew McGlashan <andrew.mcglashan@affinityvision.com.au> - 2016-06-09 22:40 +0200
          Re: Linux startup, Wheezy -- a required script won't run on  startup,  but can run manually without any trouble Dan Purgert <dan@djph.net> - 2016-06-09 23:10 +0200
            Re: Linux startup, Wheezy -- a required script won't run on startup,  but can run manually without any trouble Nicholas Geovanis <nickgeovanis@gmail.com> - 2016-06-09 23:30 +0200
        Re: Linux startup, Wheezy -- a required script won't run on startup,  but can run manually without any trouble Mark Neyhart <Mark.Neyhart@akleg.gov> - 2016-06-09 23:30 +0200
  Re: Linux startup, Wheezy -- a required script won't run on startup,  but can run manually without any trouble Brian <ad44@cityscape.co.uk> - 2016-06-09 21:30 +0200
    Re: Linux startup, Wheezy -- a required script won't run on startup,  but can run manually without any trouble Andrew McGlashan <andrew.mcglashan@affinityvision.com.au> - 2016-06-09 21:40 +0200
      Re: Linux startup, Wheezy -- a required script won't run on startup,  but can run manually without any trouble Brian <ad44@cityscape.co.uk> - 2016-06-09 22:10 +0200
        Re: Linux startup, Wheezy -- a required script won't run on startup,  but can run manually without any trouble Andrew McGlashan <andrew.mcglashan@affinityvision.com.au> - 2016-06-09 22:20 +0200
          Re: Linux startup, Wheezy -- a required script won't run on startup,  but can run manually without any trouble Christian Seiler <christian@iwakd.de> - 2016-06-10 00:40 +0200
            Re: Linux startup, Wheezy -- a required script won't run on startup,  but can run manually without any trouble Mart van de Wege <mvdwege@gmail.com> - 2016-06-10 10:20 +0200
  Re: Linux startup, Wheezy -- a required script won't run on startup,  but can run manually without any trouble Christian Seiler <christian@iwakd.de> - 2016-06-09 23:40 +0200
    Re: Linux startup, Wheezy -- a required script won't run on startup,  but can run manually without any trouble Andrew McGlashan <andrew.mcglashan@affinityvision.com.au> - 2016-06-10 08:00 +0200
      Re: Linux startup, Wheezy -- a required script won't run on startup,  but can run manually without any trouble Christian Seiler <christian@iwakd.de> - 2016-06-10 09:20 +0200
        Re: Linux startup, Wheezy -- a required script won't run on startup,  but can run manually without any trouble Andrew McGlashan <andrew.mcglashan@affinityvision.com.au> - 2016-06-11 06:10 +0200

csiph-web