Re: [systemd-devel] Trying to turn off a UPS with home-made service unit

2013-09-15 Thread Roger Price
On Wed Sep 11 10:45:48 PDT 2013 Lennart Poettering wrote: So, it's a really bad idea to turn off UPS from userspace, simply because you will race against the kernel's fs sync() code, and you never know what will finish first: your UPS shutdown timeout or your fs sync(). Doing this from

Re: [systemd-devel] Trying to turn off a UPS with home-made service unit

2013-09-11 Thread Lennart Poettering
On Sat, 10.08.13 17:02, Roger Price (ro...@rogerprice.org) wrote: I am new to systemd and I am trying to power off a UPS unit using a home-made service unit /lib/systemd/system/ups-delayed-shutdown.service running on openSUSE 12.3. So, it's a really bad idea to turn off UPS from userspace,

Re: [systemd-devel] Trying to turn off a UPS with home-made service unit

2013-08-10 Thread Roger Price
On Sat, 10 Aug 2013, Andrey Borzenkov wrote: Home made service should normally go into /etc/systemd. I moved my service to /etc/systemd/system/ [Unit] You need to add DefaultDependencies=no. Otherwise your service will conflict with shutdown.target. I added DefaultDependencies=no and