<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">Hi Roger,<br />
<br />
Here is the /usr/syno/bin/synoups file<br />
<br />
<a href="https://hastebin.com/sibopejuyu.bash" target="_blank">https://hastebin.com/sibopejuyu.bash</a><br />
<br />
Thanks,<br />
<br />
Todd</div>
</div>
<div name="messageSignatureSection"><br />
<p style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Helvetica Neue"; color: rgb(34, 34, 34);">--</p>
<p style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Helvetica Neue"; color: rgb(51, 51, 51);"><span style="color: #222222"><b>Todd Benivegna</b></span> <span style="color: #222222">//</span> <a href="mailto:todd@benivegna.com">todd@benivegna.com</a></p>
</div>
<div name="messageReplySection">On Aug 9, 2020, 4:49 PM -0400, Roger Price <roger@rogerprice.org>, wrote:<br />
<blockquote type="cite" style="border-left-color: grey; border-left-width: thin; border-left-style: solid; margin: 5px 5px;padding-left: 10px;">On Sun, 9 Aug 2020, Todd Benivegna wrote:<br />
<br />
<blockquote type="cite">upssched.conf (on Synology):<br />
CMDSCRIPT /usr/syno/bin/synoups<br />
<br />
upssched-cmd (on Synology):<br />
I don’t see this file.  <br /></blockquote>
<br />
The CMDSCRIPT declaration says that in a Synology box the file that NUT calls<br />
upssched-cmd is called /usr/syno/bin/synoups. Could we see this file? Thanks.<br />
<br />
<blockquote type="cite">What is "Safe mode"?  Is it complete power down?, or some sort of hibernation? <br />
If it's not a complete power down, how is the hibernation powered?<br />
<br />
"When the Synology NAS enters Safe Mode, it stops all services and unmounts volumes in order to prevent data loss and shut down (halt for<br />
EDS14) safely when the UPS device runs out of power. By default, the system enters Safe Mode when the UPS device starts running low on power.<br />
You can also specify the amount of time before the Synology NAS enters Safe Mode when power failure occurs. However, if the UPS device reaches<br />
low battery before the specified time, the system enters Safe Mode immediately.<br />
<br />
In situations where the Synology NAS shuts down during Safe Mode, it will automatically turn on when power is restored if you have enabled the<br />
Restart automatically after a power failure option (located at Control Panel > Hardware & Power > General)."<br /></blockquote>
<br />
This reads like typical sales literature. I admit to being none the wiser even<br />
after reading it several times.<br />
<br />
<blockquote type="cite">I gather this puts it in a state where it is ready for imminent power loss and<br />
won’t damage or lose any data.  <br /></blockquote>
<br />
How long can this last? Who supplies the power to the NAS during "Safe mode"?<br />
<br />
<blockquote type="cite">Ok, I will comment that back out.  That won’t interfere with anything?  What<br />
user would it run as?  Will it have access to upsmon.conf?<br /></blockquote>
<br />
Ubuntu very probably has user nut set up to run NUT and has the permissions set<br />
accordingly. If it's possible to execute "command ps -elf | grep nut" in a<br />
running NAS you will see user nut in action.<br />
<br />
Roger<br />
_______________________________________________<br />
Nut-upsuser mailing list<br />
Nut-upsuser@alioth-lists.debian.net<br />
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</blockquote>
</div>
</body>
</html>