Command Syntax: arcvservice

Copyright 2008 by Stephen Vermeulen
Last updated: 2008 Oct 12


Introduction

This is part of a series of articles on backing up computers. The top page is Design for an Archiving Backup System.

This page describes the command line syntax of the service.py program.

Purpose

The service.py program is designed to be run as a Windows Service application. Normally one does not run it directly except when it is being installed or removed.

See the Installation section of the arcvback main page for more information on its use.

Note the service is not used if you are running ArcvBack on a non-Windows platform.

Debugging

Occasionally there might be a problem with the service that is not possible to figure out from the log file, in this case one can modify a few lines in the service.py file and then run the service directly from the command line. The following lines:

if __name__ == "__main__":
    # for testing you can comment out the next line and then
    # uncomment the following two, then you can run it directly
    # from the command line to look for errors that escaped getting
    # logged
    win32serviceutil.HandleCommandLine(service)
    #import arcvback
    #arcvback.serviceBackup(scheduleFile, configFile)

can be changed to read:

if __name__ == "__main__":
    # for testing you can comment out the next line and then
    # uncomment the following two, then you can run it directly
    # from the command line to look for errors that escaped getting
    # logged
    #win32serviceutil.HandleCommandLine(service)
    import arcvback
    arcvback.serviceBackup(scheduleFile, configFile)

to do this. If you do this you should stop the service from running using the Windows Control Panel first.




                back to arcvback.com home