mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] systemd: Using second offline update service beside rc-once in PTXDIST
@ 2017-06-01 14:51 Schenk, Gavin
  2017-06-02  9:46 ` Michael Olbrich
  0 siblings, 1 reply; 7+ messages in thread
From: Schenk, Gavin @ 2017-06-01 14:51 UTC (permalink / raw)
  To: ptxdist

Hi,

before continuing to hack ptxdist and rc-once, I would appreciate some feedback from the gurus.
 
I want to use systemd.offline-updated as introduced here and already used in PTXDIST by rc-once:
https://www.freedesktop.org/software/systemd/man/systemd.offline-updates.html#

In my use case, I have to do some data-migration stuff on an already delivered target. The data-migration has some deep impacts on the targets storages and I want to ensure no other stuff is running on the machine. Additionally I would like to provide my customers some gui when transforming the targets data. As the migration is done via shell scripts I use pv and dialog. To be able to use dialog a VT on the framebuffer I have to do some settings in the service file e.g.:

...
StandardOutput=tty                                                                                                                                                                             
StandardInput=tty                                                                                                                                                                              
TTYPath=/dev/tty1                                                                                                                                                                              
TTYReset=yes                                                                                                                                                                                   
TTYVHangup=yes
...

One of my problems is, that rc-once does not check where /system-update points to, as suggested. My idea is to install a second update-service that does the migration stuff instead of hacking rc-once service file and do it there. Running both in parallel is a bad idea!
 
What do you think about using readlink in systemd-rc-once and just exit without error if /system-update does point to another location than /etc/rc-once?
Another idea is to add a second service that doesn´t check /system-update either and use a after directive in its service file?
Is this something we want a common solution for?

Best regards
Gavin Schenk

Eckelmann AG
Vorstand: Dipl.-Ing. Peter Frankenbach (Sprecher) Dipl.-Wi.-Ing. Philipp Eckelmann
Dr.-Ing. Marco Münchhof Dr.-Ing. Frank Uhlemann
Vorsitzender des Aufsichtsrats: Hubertus G. Krossa
Stv. Vorsitzender des Aufsichtsrats: Dr.-Ing. Gerd Eckelmann
Sitz der Gesellschaft: Berliner Str. 161, 65205 Wiesbaden, Amtsgericht Wiesbaden HRB 12636
http://www.eckelmann.de 


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-06-07  7:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-01 14:51 [ptxdist] systemd: Using second offline update service beside rc-once in PTXDIST Schenk, Gavin
2017-06-02  9:46 ` Michael Olbrich
2017-06-02 11:15   ` Schenk, Gavin
2017-06-06  9:04     ` Michael Olbrich
2017-06-06 15:28       ` Schenk, Gavin
2017-06-06 16:33         ` Michael Olbrich
2017-06-07  7:26           ` Schenk, Gavin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox