37 lines
1.1 KiB
Python
37 lines
1.1 KiB
Python
defaults = {
|
|
'systemd': {
|
|
'units': {
|
|
'bootshorn-record.service': {
|
|
'Unit': {
|
|
'Description': 'Bootshorn Recorder',
|
|
'After': 'network.target',
|
|
},
|
|
'Service': {
|
|
'User': 'ckn',
|
|
'Group': 'ckn',
|
|
'Type': 'simple',
|
|
'WorkingDirectory': '/opt/bootshorn',
|
|
'ExecStart': '/opt/bootshorn/record',
|
|
'Restart': 'always',
|
|
'RestartSec': 5,
|
|
'Environment': {
|
|
"XDG_RUNTIME_DIR": "/run/user/1000",
|
|
"PULSE_SERVER": "unix:/run/user/1000/pulse/native",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
'systemd-timers': {
|
|
'bootshorn-process': {
|
|
'command': '/opt/bootshorn/process',
|
|
'when': 'minutely',
|
|
'working_dir': '/opt/bootshorn',
|
|
'user': 'ckn',
|
|
'group': 'ckn',
|
|
'after': {
|
|
'bootshorn-process.service',
|
|
},
|
|
},
|
|
},
|
|
}
|