feat(guanghu-os): add cross-root supervisor slice
This commit is contained in:
parent
fed0c73b04
commit
9db3ecd2e7
10 changed files with 317 additions and 5 deletions
|
|
@ -0,0 +1,20 @@
|
|||
[Unit]
|
||||
Description=Guanghu cross-root persistent supervisor
|
||||
DefaultDependencies=no
|
||||
After=systemd-remount-fs.service
|
||||
Before=sysinit.target basic.target
|
||||
ConditionKernelCommandLine=guanghu.first_boot=1
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/lib/guanghu/guanghu-root-supervisor run
|
||||
Restart=on-failure
|
||||
RestartSec=2
|
||||
UMask=0077
|
||||
NoNewPrivileges=true
|
||||
ProtectHome=true
|
||||
ProtectSystem=strict
|
||||
ReadWritePaths=/run/guanghu
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
||||
Loading…
Reference in a new issue