Add support for Initialisation Scripts with rcS (#340)

* validate systemctl command

* validate systemctl command

* add rcS support

* only attempt to set environment if list is not empty

* check if service bin exists
This commit is contained in:
Maycon Santos
2022-10-11 14:13:05 +02:00
committed by GitHub
parent f4a4df2b5e
commit 3596dfaf34
4 changed files with 326 additions and 0 deletions
+9
View File
@@ -62,6 +62,15 @@ func init() {
},
new: newOpenRCService,
},
linuxSystemService{
name: "linux-rcs",
detect: isRCS,
interactive: func() bool {
is, _ := isInteractive()
return is
},
new: newRCSService,
},
linuxSystemService{
name: "unix-systemv",
detect: func() bool { return true },