[Nut-upsuser] Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
wolfy at nobugconsulting.ro
Tue Aug 4 16:00:51 BST 2020
On 8/4/20 5:43 PM, Todd Benivegna wrote:
> Right, but I don't know what NUT script is actually calling it. I
> don't know how else I would check.
- use SHUTDOWNCMD ="|echo $SHELL > /tmp/WhatShellIsInUse" and check
the content of that file after a shutdown is triggered
|- proceed as you suggested earlier and add the same function in dash's
|- place all the commands suggested by Roger ( including the function
itself ) in a standard script saved on disk ( as a file ) and invoke
that script from the shutdown command|
> On Tue, Aug 4, 2020 at 10:21 AM Manuel Wolfshant
> <wolfy at nobugconsulting.ro <mailto:wolfy at nobugconsulting.ro>> wrote:
> On 8/4/20 4:16 PM, Todd Benivegna wrote:
> > Ok, so now that I think of it, that might not actually work when
> it is
> > not run by me. I guess that it all confirms that it works in Bash,
> > but I think when it runs on its own it would use Dash...
> it uses whatever shell you ask for in the first line of the script
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Nut-upsuser