Introducing systemd mfg.service

This commit is contained in:
D4rk4 2020-07-31 15:32:43 +02:00
parent 5adc1b90ef
commit 7e9d5f0586
4 changed files with 25 additions and 9 deletions

15
contrib/mfg.service Normal file
View file

@ -0,0 +1,15 @@
[Unit]
Description=Manufacturing service
After=serial-getty@ttyS0.service
After=docker.service
[Service]
Type=oneshot
ExecStart=/opt/coins-demo/contrib/firstboot.sh
StandardInput=tty
TTYPath=/dev/ttyS0
TTYReset=yes
TTYVHangup=yes
[Install]
WantedBy=multi-user.target