workaroundkent bele kell irni a /lib/systemd/system/rsync.service:ExecStart-ba
Ne, azt a kövi rsync frissítés gondolkodás nélkül felül fogja csapni. Terjeszd ki a konfigot (pl. /etc/systemd/system/rsync.service.d/read-defaults.conf néven hozz létre egy fájlt, amiben csak azt módosítasz, amit szeretnél [esetedben egy EnvironmentFile direktívára lesz szükség szvsz - ha csak statikus dolgok vannak a /etc/default/rsync-ben])).
nem mukodik az "/etc/init.d/openvpn start ovpnconf", ahol az ovpnconf az /etc/openvpn/*.conf kozul barmelyik lehet, igy barmelyik ovpn-t el tudtam inditani.
Erre vannak a paraméterezhető service-ek:
Optionally, units may be instantiated from a template file at runtime. This allows creation of multiple units from a single configuration file. If systemd looks for a unit configuration file, it will first search for the literal unit name in the file system. If that yields no success and the unit name contains an "@" character, systemd will look for a unit template that shares the same name but with the instance string (i.e. the part between the "@" character and the suffix) removed. Example: if a service getty@tty3.service is requested and no file by that name is found, systemd will look for getty@.service and instantiate a service from that configuration file if it is found.
(https://www.freedesktop.org/software/systemd/man/systemd.unit.html#)
be lehet-e allitani olyat, hogy ha egy service leall automatikusan ujrainditsa?
Nézd meg a Restart= direktíva leírását (https://www.freedesktop.org/software/systemd/man/systemd.service.html#B…) neked spec az Always kell. A fentivel (unit extension) ez így összesen két sorral megoldható, bármilyen service-re.
Az ask-password őszintén passz, még soha nem találkoztam vele, nem használok semmit, aminek induláskor jelszó kéne,
BlackY
--
"en is amikor bejovok dolgozni, nem egy pc-t [..] kapcsolok be, hanem a mainframe-et..." (sj)