This commit is contained in:
Konstantin Stepanov 2014-04-21 07:15:23 -07:00
parent d0f09b2b2e
commit cd2df6a28a

View File

@ -123,7 +123,7 @@ RefuseManualStop=true
[Timer]
Unit=%s.service
%s
''' % (line, unit_name, schedule)
''' % (line, unit_name, schedule))
with open('%s/%s.service' % (TARGER_DIR, unit_name), 'w') as f:
f.write('''[Unit]\n')
@ -135,7 +135,7 @@ RefuseManualStop=true
Type=oneshot
User=%s
ExecStart=/bin/sh -c "%s"
''' % (line, job['u'], job['c'])
''' % (line, job['u'], job['c']))
seqs = {}
def count():