From 509efb801d48f4c9554d3b7b7b8177684f2a6e41 Mon Sep 17 00:00:00 2001 From: Marcel Hoppe Date: Sun, 10 Jul 2022 10:33:52 +0200 Subject: [PATCH] Fix service files --- PKGBUILD | 2 +- setup.py | 2 +- systemd/wallgen-dbus.service | 1 + systemd/wallgen-monitor.service | 1 + systemd/wallgen.service | 1 + 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 6c6a633..cf51f18 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ pkgname=python-wallgen pkgbase=${pkgname} -pkgver=0.2.2 +pkgver=$(grep -Po "(?<=version=')([0-9\.]+)(?=')" setup.py) pkgrel=1 _tag=${pkgver} _name=${pkgname#python-} diff --git a/setup.py b/setup.py index e72618d..1c888be 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name='wallgen', - version='0.2.2', + version='0.2.3', scripts=['bin/wallgen'] , author="Marcel Hoppe", author_email="hoppe.marcel@gmail.com", diff --git a/systemd/wallgen-dbus.service b/systemd/wallgen-dbus.service index afb7559..d395e21 100644 --- a/systemd/wallgen-dbus.service +++ b/systemd/wallgen-dbus.service @@ -3,6 +3,7 @@ Description=Service for a new wallpaper on display changes [Service] Type=dbus +RestartSec=1s BusName=de.thm.mni.mhpp11.WallGen Restart=on-failure diff --git a/systemd/wallgen-monitor.service b/systemd/wallgen-monitor.service index 0942392..400495e 100644 --- a/systemd/wallgen-monitor.service +++ b/systemd/wallgen-monitor.service @@ -4,6 +4,7 @@ After=wallgen-dbus.service [Service] Restart=on-failure +RestartSec=1s ExecStart=python -m wallgen --monitor [Install] diff --git a/systemd/wallgen.service b/systemd/wallgen.service index 0ae10e5..d11ad84 100644 --- a/systemd/wallgen.service +++ b/systemd/wallgen.service @@ -4,6 +4,7 @@ After=wallgen-dbus.service [Service] Restart=on-failure +RestartSec=1s ExecStart=python -m wallgen [Install]