mirror of
https://git.srhtnin.garden/sarah/SaraSuite.git
synced 2026-10-14 10:28:11 +02:00
Background services without systemd (runit, OpenRC, ...)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
e7e233951f
commit
f63e708572
8 files changed
+325
-110
No files matched your search
@@ -40,24 +40,28 @@ Target = "{ConfigDir}/InputDirConf.toml"
|
||||
Source = "OutputDirConf.toml"
|
||||
Target = "{ConfigDir}/OutputDirConf.toml"
|
||||
|
||||
# Linux: a systemd user service.
|
||||
# Linux with systemd: a systemd user service.
|
||||
[[Templates]]
|
||||
Platform = "Linux"
|
||||
Source = "SaraSortd.service"
|
||||
Target = "{SystemdUserDir}/SaraSortd.service"
|
||||
|
||||
# Windows, and Linux without systemd (runit, OpenRC, s6, ...): run from
|
||||
# ConfigDir by ServiceRun.py, which restarts it if it fails, at login through
|
||||
# a shortcut in the Startup folder / an XDG autostart entry (SaraSuite's
|
||||
# Services.py). On Linux the same service has a Unit for systemd too.
|
||||
[[Templates]]
|
||||
Source = "../../ServiceRun.py"
|
||||
Target = "{ProgramDir}/ServiceRun.py"
|
||||
|
||||
[[Services]]
|
||||
Platform = "Linux"
|
||||
Unit = "SaraSortd.service"
|
||||
Name = "SaraSortd"
|
||||
Script = "SaraSortd.py"
|
||||
WorkingDir = "{ConfigDir}"
|
||||
Option = "Autostart"
|
||||
|
||||
# Windows: run windowless from ConfigDir by ServiceRun.py, at login through a
|
||||
# shortcut in the Startup folder (see SaraSuite's WindowsSupport.py).
|
||||
[[Templates]]
|
||||
Platform = "Windows"
|
||||
Source = "../../ServiceRun.py"
|
||||
Target = "{ProgramDir}/ServiceRun.py"
|
||||
|
||||
[[Services]]
|
||||
Platform = "Windows"
|
||||
Name = "SaraSortd"
|
||||
|
||||
Reference in new issue
Block a user