Subversion Repositories SmartDukaan

Rev

Rev 15177 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15177 Rev 15178
Line 15... Line 15...
15
                  type="string",
15
                  type="string",
16
                  help="Write the PID to pidfile")
16
                  help="Write the PID to pidfile")
17
(options, args) = parser.parse_args()
17
(options, args) = parser.parse_args()
18
 
18
 
19
class NotificationDaemon(Daemon):
19
class NotificationDaemon(Daemon):
20
    def __init__(self, logfile='/var/log/services/notification-job.log', pidfile='/var/run/notification-job.pid'):
20
    def __init__(self, logfile='/var/log/services/NotificationDaemon.log', pidfile='/var/run/NotificationDaemon.pid'):
21
        Daemon.__init__(self, pidfile, stdout=logfile, stderr=logfile)
21
        Daemon.__init__(self, pidfile, stdout=logfile, stderr=logfile)
22
        
22
        
23
    def run(self):
23
    def run(self):
24
        start()
24
        start()
25
 
25