[Nut-upsuser] Nut-upsuser Digest, Vol 200, Issue 2

Roger Price roger at rogerprice.org
Thu Feb 3 20:10:49 GMT 2022


On Thu, 3 Feb 2022, William Cole via Nut-upsuser wrote:

> I guess I'm not understanding what "your server setup command" should be.   I 
> looked at the manpage for script - I'm still learning all this - and 
> understand what the script command is to do in capturing terminal activity. 
> The -c argument is looking for "your server setup command"; that's where I am 
> stumped.

It's the ExecStart line in nut-server.service.  In my nut-server.service setup I 
have:

  [Service]
  ExecStart=/sbin/upsd
  Type=forking

so the script command for me would be:

 script -a -c "/sbin/upsd" NUT.script

Roger


More information about the Nut-upsuser mailing list