Example #1
0
 def configure(self):
     self += CronJob(
         self.expand(
             "{{component.root.workdir}}/{{component.parent.executable}}"),
         timing="@reboot",
         logger=self.root.name,
     )
Example #2
0
 def configure(self):
     self.directory = self.parent.workdir
     self += CronJob(
         self.expand("/usr/sbin/logrotate -s {{component.directory}}/state"
                     " {{component.directory}}/logrotate.conf"),
         timing="45 2 * * *",
     )
Example #3
0
 def configure(self):
     self += CronJob(self.expand(
         '{{component.root.workdir}}/{{component.parent.executable}}'),
                     timing='@reboot',
                     logger=self.root.name)
Example #4
0
 def configure(self):
     self.directory = self.parent.workdir
     self += CronJob(self.expand(
         '/usr/sbin/logrotate -s {{component.directory}}/state'
         ' {{component.directory}}/logrotate.conf'),
                     timing='45 2 * * *')