On Tue, Apr 1, 2014 at 6:45 AM, Kai Hendry <[email protected]> wrote: > On 31 March 2014 09:54, Kai Hendry <[email protected]> wrote: >> Not sure what to try next? If I start it manually `sudo systemctl >> start [email protected]`, it starts working again. Is >> http://www.freedesktop.org/software/systemd/man/systemd.service.html#TimeoutSec= >> the right way to proceed? Not sure. > > RestartSec=5 did the trick! Not sure why systemd gives up trying to > restart a process, despite Restart=always > http://ix.io/bog >
Using Bind on device name would be more logical. In this case systemd would stop service when deviced disappeared and restart when it appears again. This avoids permanent restart loop when device is not present. > > Still don't understand where > > [hendry@alarmpi ~]$ systemctl status > shkd@sys-devices-platform-bcm2708_usb-usb1-1\x2d1-1\x2d1.2-1\x2d1.2.2-1\x2d1.2.2:1.0-input-input1.service > shkd@sys-devices-platform-bcm2708_usb-usb1-1x2d1-1x2d1.2-1x2d1.2.2-1x2d1.2.2:1.0-input-input1.service > - Simple HotKey Daemon > Loaded: loaded (/etc/systemd/system/[email protected]; disabled) > Active: inactive (dead) > > Comes from. > >From "systemctl status". As soon as unit is mentioned anywhere the stub for it is internally created by systemd (it resolves actual unit on-disk definition lazily). So your own command creates it :) _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
