Exemplo n.º 1
0
 def configure(self):
     self += CronJob(
         self.expand(
             "{{component.root.workdir}}/{{component.parent.executable}}"),
         timing="@reboot",
         logger=self.root.name,
     )
Exemplo n.º 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 * * *",
     )
Exemplo n.º 3
0
 def configure(self):
     self += CronJob(self.expand(
         '{{component.root.workdir}}/{{component.parent.executable}}'),
                     timing='@reboot',
                     logger=self.root.name)
Exemplo n.º 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 * * *')