示例#1
0
文件: debian.py 项目: admdev8/batou
 def configure(self):
     self += CronJob(
         self.expand(
             "{{component.root.workdir}}/{{component.parent.executable}}"),
         timing="@reboot",
         logger=self.root.name,
     )
示例#2
0
文件: debian.py 项目: admdev8/batou
 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 * * *",
     )
示例#3
0
 def configure(self):
     self += CronJob(self.expand(
         '{{component.root.workdir}}/{{component.parent.executable}}'),
                     timing='@reboot',
                     logger=self.root.name)
示例#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 * * *')