mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-16 17:41:20 +01:00
2024-10-09 Fred Gleason <fredg@paravelsystems.com>
* Fixed typos in rdautorest(8). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -24909,3 +24909,5 @@
|
|||||||
* Added an rdautorest(8) utility.
|
* Added an rdautorest(8) utility.
|
||||||
2024-10-09 Fred Gleason <fredg@paravelsystems.com>
|
2024-10-09 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Added an rdautorest(8) man page.
|
* Added an rdautorest(8) man page.
|
||||||
|
2024-10-09 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Fixed typos in rdautorest(8).
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ rd_config.read_file(open('/etc/rd.conf'))
|
|||||||
# Open the syslog
|
# Open the syslog
|
||||||
#
|
#
|
||||||
syslog.openlog('rdautorest.py',logoption=syslog.LOG_PID|syslog.LOG_PERROR,facility=int(rd_config.get('Identity','SyslogFacility',fallback=syslog.LOG_USER)))
|
syslog.openlog('rdautorest.py',logoption=syslog.LOG_PID|syslog.LOG_PERROR,facility=int(rd_config.get('Identity','SyslogFacility',fallback=syslog.LOG_USER)))
|
||||||
syslog.syslog(syslog.LOG_INFO,'Starting Rivendell backup to "'+mountpoint+'"')
|
syslog.syslog(syslog.LOG_INFO,'Starting Rivendell restore from "'+mountpoint+'"')
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -87,9 +87,9 @@ if(os.waitstatus_to_exitcode(result)!=0):
|
|||||||
# Stop Rivendell service
|
# Stop Rivendell service
|
||||||
#
|
#
|
||||||
result=os.system(command='/bin/systemctl stop rivendell')
|
result=os.system(command='/bin/systemctl stop rivendell')
|
||||||
if(os.waitstatus_to_exitcode(result)!=0):
|
#if(os.waitstatus_to_exitcode(result)!=0):
|
||||||
syslog.syslog(syslog.LOG_ERR,'unable to stop Rivendell service')
|
# syslog.syslog(syslog.LOG_ERR,'unable to stop Rivendell service')
|
||||||
exit(1)
|
# exit(1)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Create new database
|
# Create new database
|
||||||
@@ -115,9 +115,9 @@ os.system(command=cmd)
|
|||||||
# Start Rivendell service
|
# Start Rivendell service
|
||||||
#
|
#
|
||||||
result=os.system(command='/bin/systemctl restart rivendell')
|
result=os.system(command='/bin/systemctl restart rivendell')
|
||||||
if(os.waitstatus_to_exitcode(result)!=0):
|
#if(os.waitstatus_to_exitcode(result)!=0):
|
||||||
syslog.syslog(syslog.LOG_ERR,'unable to start Rivendell service')
|
# syslog.syslog(syslog.LOG_ERR,'unable to start Rivendell service')
|
||||||
exit(1)
|
# exit(1)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Unmount backup device
|
# Unmount backup device
|
||||||
|
|||||||
Reference in New Issue
Block a user