Welcome! » Log In » Create A New Profile

Preventing shutdown when backup is running

Posted by Anonymous 
Preventing shutdown when backup is running
February 22, 2011 01:51AM
Fabian Kürten wrote:
[quote]Is there a way to prevent normal users from shutting the system down
(rebotting/hibernating/...) while rsnapshot is running?
[/quote]
Write a restrictive /etc/shutdown.allow at the start of the rsnapshot
job and remove it (or replace it with a permissive one) at the end?
See man shutdown to see if it will work for you.

Hope that helps,
--
MJ Ray (slef), member of www.software.coop, a for-more-than-profit co-op.
Webmaster, Debian Developer, Past Koha RM, statistician, former lecturer.
In My Opinion Only: see http://mjr.towers.org.uk/email.html
Available for hire for various work http://www.software.coop/products/

------------------------------------------------------------------------------
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk
Collect, index and harness all the fast moving IT data generated by your
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights.
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
Sorry, only registered users may post in this forum.

Click here to login