Re: BTRFS scrub from systemd unit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 03/19/2014 09:40 PM, Sean Greenslade wrote:
> On Thu, Mar 20, 2014 at 01:06:18AM +0000, Mauro Santos wrote:
>> On 20-03-2014 00:41, Sean Greenslade wrote:
>>> Hi, folks. I've been noodling over this rather odd issue I've been
>>> having, and I thought I'd get a second opinion on things. 
>>> <SNIP>
>>> So I'm stumped, here. Anyone have any clue as to what's happening?
>>>
>>> Thanks,
>>>
>>> --Sean
>>>
>>
>> Just a guess but you might want to change the unit type to simple
>> instead of oneshot.
>>
>> -- 
>> Mauro Santos
> 
> I thought of that, but it just does the same thing. The scrub command
> returns after forking(?) back the real scrub process. Now, maybe if
> someone has a clever way of making the service detect when the scrub
> finishes, I could do a remainafterexit unit, but I can't see a way to do
> that.
> 
> --Sean
> 
Salutations,

If it's supposed to fork, you may want to switch to type=forking.

See <http://www.freedesktop.org/software/systemd/man/systemd.service.html>

Regards,
Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iF4EAREIAAYFAlMqR5YACgkQZ/Z80n6+J/a7sgD/URN81eys/q0U5AR/3GhMkO+T
lfshsUS0cGNxQfNQWX4A+QGL5kwecc8YJFgev4TLokMDrsP3xWZ80CA4OI7EVbXv
=IKdv
-----END PGP SIGNATURE-----


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux