[systemd-devel] PgSQL, MySQL systemd services - how to rewrite complex init scripts?

Michał Piotrowski mkkp4x4 at gmail.com
Sat Apr 9 11:00:48 PDT 2011


W dniu 9 kwietnia 2011 18:57 użytkownik Michał Piotrowski
<mkkp4x4 at gmail.com> napisał:
> W dniu 9 kwietnia 2011 18:54 użytkownik Mirco Tischler <mt-ml at gmx.de> napisał:
>> Hi
>> 2011/4/9 Michał Piotrowski <mkkp4x4 at gmail.com>
>>>
>>> Hi,
>>> ...
>>>
>>> Mysql script also has some data dir creation code - I think it can
>>> also be moved to separated script.
>>>
>>> Thoughts, recommendations, comments are welcome
>>>
>>> --
>>> Best regards,
>>> Michal
>>
>>  Have you considered using a file in /etc/tmpfiles.d and let systemd take
>> care of this?
>>
>> Mirco
>>
>
> No, but I think that this is a good idea. Thanks!

Hmmm... but what if I want to change default dir? I use /home/data/
instead of /var/lib/pgsql and /var/lib/mysql


-- 
Best regards,
Michal

http://eventhorizon.pl/


More information about the systemd-devel mailing list