Re: Preventing the computer from shutting down.

2015-01-15 Thread Rob Owens
ify that what I mean by “preventing the computer from > shutting down” is preventing the operator from inadvertently > shutting down or rebooting the system while it is undergoing a > backup. I know this is an old thread, but here's something that might work. I have a Wheezy system r

Re: Preventing the computer from shutting down.

2014-10-31 Thread Mario Castelán Castro
Thanks everybody for their help. I will use molly-guard to guard from accidental shut down from the CLI. Is there something like molly-guard for the LXDE power off/close session button?. I must clarify that what I mean by “preventing the computer from shutting down” is preventing the operator

Re: Preventing the computer from shutting down.

2014-10-31 Thread Michael Biebl
Am 31.10.2014 um 07:07 schrieb Don Armstrong: > On Thu, 30 Oct 2014, Joey Hess wrote: >> Don Armstrong wrote: >>> systemd-inhibit --who='backup script' --why='backup is running currently' \ >>> --mode=block yourbackupscript; >> >> This doesn't currently prevent either /sbin/shutdown or eg, the >>

Re: Preventing the computer from shutting down.

2014-10-31 Thread lee
Mario Castelán Castro writes: > Hello. > > I can set up a script for backup with cron or anacron, but how can I > prevent the computer from shutting down while the backup is being > performed so as to not to leave it incomplete?. I'd try to fix the bug that makes it shut down. Do you have broke

Re: Preventing the computer from shutting down.

2014-10-31 Thread martin f krafft
also sprach Karl E. Jorgensen [2014-10-31 09:21 +0100]: > Personally, I would have preferred molly-guard to use dpkg-divert, > but it works as it is. It does, since 0.5-1, but that needs to be uploaded still. I am checking… -- .''`. martin f. krafft @martinkrafft : :' : proud Debian devel

Re: Preventing the computer from shutting down.

2014-10-31 Thread Karl E. Jorgensen
Hi On Thu, Oct 30, 2014 at 11:07:27PM -0700, Don Armstrong wrote: > On Thu, 30 Oct 2014, Joey Hess wrote: > > Don Armstrong wrote: > > > systemd-inhibit --who='backup script' --why='backup is running currently' > > > \ > > > --mode=block yourbackupscript; > > > > This doesn't currently prevent

Re: Preventing the computer from shutting down.

2014-10-30 Thread Raffaele Morelli
On 30/10/14 at 12:11pm, Mario Castelán Castro wrote: > Hello. > > I can set up a script for backup with cron or anacron, but how can I prevent > the computer from shutting down while the backup is being performed so as to > not to leave it incomplete?. > > Regards. If I understand you request yo

Re: Preventing the computer from shutting down.

2014-10-30 Thread Don Armstrong
On Thu, 30 Oct 2014, Joey Hess wrote: > Don Armstrong wrote: > > systemd-inhibit --who='backup script' --why='backup is running currently' \ > > --mode=block yourbackupscript; > > This doesn't currently prevent either /sbin/shutdown or eg, the > lightdm menu item from shutting the system down. It

Re: Preventing the computer from shutting down.

2014-10-30 Thread Karl E. Jorgensen
Hi On Thu, Oct 30, 2014 at 02:02:49PM -0600, Mario Castelán Castro wrote: > Thanks you Doug, Don and Laurent. Is there a less hacky way to do > this using the default init system in wheezy? I think that you can get *some* of the way by installing the molly-guard package. Although molly-guard is

Re: Preventing the computer from shutting down.

2014-10-30 Thread Mario Castelán Castro
Thanks you Doug, Don and Laurent. Is there a less hacky way to do this using the default init system in wheezy? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/5452

Re: Preventing the computer from shutting down.

2014-10-30 Thread Joey Hess
Don Armstrong wrote: > On Thu, 30 Oct 2014, Mario Castelán Castro wrote: > > I can set up a script for backup with cron or anacron, but how can I > > prevent the computer from shutting down while the backup is being > > performed so as to not to leave it incomplete?. > > If you're using systemd, t

Re: Preventing the computer from shutting down.

2014-10-30 Thread Mario Castelán Castro
El 30/10/14 12:31, Doug escribió: On 10/30/2014 02:11 PM, Mario Castelán Castro wrote: Hello. I can set up a script for backup with cron or anacron, but how can I prevent the computer from shutting down while the backup is being performed so as to not to leave it incomplete?. Regards. One s

Preventing the computer from shutting down.

2014-10-30 Thread Mario Castelán Castro
Hello. I can set up a script for backup with cron or anacron, but how can I prevent the computer from shutting down while the backup is being performed so as to not to leave it incomplete?. Regards. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubsc

Re: Preventing the computer from shutting down.

2014-10-30 Thread Laurent Bigonville
Le Thu, 30 Oct 2014 12:11:25 -0600, Mario Castelán Castro a écrit : > Hello. Hello, > I can set up a script for backup with cron or anacron, but how can I > prevent the computer from shutting down while the backup is being > performed so as to not to leave it incomplete?. If you are using sy

Re: Preventing the computer from shutting down.

2014-10-30 Thread Don Armstrong
On Thu, 30 Oct 2014, Mario Castelán Castro wrote: > I can set up a script for backup with cron or anacron, but how can I > prevent the computer from shutting down while the backup is being > performed so as to not to leave it incomplete?. If you're using systemd, this can be done using systemd-inh

Re: Preventing the computer from shutting down.

2014-10-30 Thread Doug
On 10/30/2014 02:11 PM, Mario Castelán Castro wrote: Hello. I can set up a script for backup with cron or anacron, but how can I prevent the computer from shutting down while the backup is being performed so as to not to leave it incomplete?. Regards. One simple way that does not require a