Use systemd-run to spawn commands when running as system service
This commit is contained in:
parent
24be50aa05
commit
69a2b9be16
1 changed files with 2 additions and 1 deletions
|
@ -482,7 +482,8 @@ impl EventReader {
|
|||
cmd
|
||||
}
|
||||
else {
|
||||
command.clone()
|
||||
let cmd = format!("systemd-run --user -M {}@ {}", user, command);
|
||||
cmd
|
||||
};
|
||||
match fork() {
|
||||
Ok(Fork::Child) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue