systemd service update
This commit is contained in:
parent
f909e8c6b7
commit
a6dbe2cd0a
1 changed files with 7 additions and 1 deletions
|
@ -91,11 +91,17 @@
|
||||||
systemd.user.services.lastfmpris = {
|
systemd.user.services.lastfmpris = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "a rust application to scrobble your currently playing song on last.fm with mpris";
|
Description = "a rust application to scrobble your currently playing song on last.fm with mpris";
|
||||||
Requires = ["graphical-session.target"];
|
After = [ "graphical-session-pre.target" ];
|
||||||
|
PartOf = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
Install = {
|
||||||
|
WantedBy = [ "graphical-session.target" ];
|
||||||
};
|
};
|
||||||
Service = {
|
Service = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
ExecStart = "${lib.getExe cfg.package}";
|
ExecStart = "${lib.getExe cfg.package}";
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = 1;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue