[2019-03-07 12:57] Andras Korn <[email protected]>
> part 1 text/plain 218
> Sorry, I sent an earlier version of the patch by mistake.
>
> I'm attaching the correct one, which I tested and which works for me.
> [...]
> - if (sigc && (stat(STOPIT, &s) != -1) && (s.st_mode & S_IXUSR)) {
> + if ((sigp) || (sigc && (stat(STOPIT, &s) != -1) && (s.st_mode &
> S_IXUSR))) {
As far as I can tell by glance on patch, you want SIGPWR trigger reboot.
If so, why don't you create REBOOT file in, say, /etc/rc.local and make
lxc controller to send SIGCONT?
Or am I missing something, and your patch gives more flexibility?
By the way, SIGPWR is not in POSIX, according to signal(7).
--
Note, that I send and fetch email in batch, once every 24 hours.
If matter is urgent, try https://t.me/kaction
--