search for: firstups

Displaying 4 results from an estimated 4 matches for "firstups".

Did you mean: firstpr
2016 Jul 11
0
Proposal for technique to stop a timer at any moment
...:34.000000000 +0100 +++ nut-2.7.4.dev/server/upsd.c 2016-07-01 09:56:59.589903339 +0200 @@ -848,6 +848,32 @@ static void set_exit_flag(int sig) exit_flag = sig; } +static void sigusr1_handler(int sig) +{ + /* SIGUSR1 signals are passed on to every known UPS RP */ + upstype_t *u; + + for (u = firstups; u; u = u->next) { + if ( u->sigusr1 < MAX_SIGUSR1 ) { + (u->sigusr1)++; + upsdebugx(1, "%s: UPS %s, sigusr1 up to %d", __func__, u->name, u->sigusr1); + } + } +} + +static void sigusr2_handler(int sig) +{ + /* SIGUSR2 signals are passed on to every known UPS RP */...
2007 Sep 14
1
Bug#441342: Nut can kill power to UPSs that never went on battery
...t down the Linux system, and once that was done, > it would proceed to force a shutdown of all the other UPSs. > > The smoking gun is in upsmon's forceshutdown(): > > /* set FSD on any "master" UPS entries (forced shutdown in progress) */ > for (ups = firstups; ups != NULL; ups = ups->next) > if (flag_isset(ups->status, ST_MASTER)) { > isamaster = 1; > setfsd(ups); > } > > This code does not attempt to determine whether the UPS in question needs to &gt...
2007 May 13
0
No subject
...own. Otherwise, they would not be able to be shutdown if the UPS that feeds them is low on battery. >> The smoking gun is in upsmon's forceshutdown(): >> >> /* set FSD on any "master" UPS entries (forced shutdown in progress) */ >> for (ups =3D firstups; ups !=3D NULL; ups =3D ups->next) >> if (flag_isset(ups->status, ST_MASTER)) { >> isamaster =3D 1; >> setfsd(ups); >> } >> >> This code does not attempt to determine whether th...
2007 Jan 23
2
Re: [nut-commits] svn commit r731
...original) > +++ trunk/server/conf.c Sat Jan 13 21:22:28 2007 > @@ -25,6 +25,8 @@ > #include "user.h" > #include "access.h" > > +#define QUOTED(x) #x > + > extern int maxage; > extern char *statepath, *datapath, *certfile; > extern upstype *firstups; > @@ -197,6 +199,15 @@ > return 1; > } > > + /* LISTEN <address> [<port>] */ > + if (!strcmp(arg[0], "LISTEN")) { > + if (numargs < 3) > + listen_add(arg[1], "3493"); > + else > + listen_add(arg[1], arg[2]); > + retu...