Commit 633d533b90257e82ba87b702227e0a0b429b51c9

Authored by Silvan Calarco
1 parent b8b5cac4bb
Exists in master

Add systemd eject service

Showing 2 changed files with 16 additions and 2 deletions Side-by-side Diff

... ... @@ -72,6 +72,7 @@
72 72  
73 73 install: install-dirs install-locales install-icons
74 74 $(INSTALL_DATA) tools/autovt@.service $(DESTDIR)$(sysconfdir)/systemd/system/
  75 + $(INSTALL_DATA) tools/eject.service $(DESTDIR)$(sysconfdir)/systemd/system/
75 76 $(INSTALL_PROGRAM) liveuser-sudoers $(DESTDIR)$(sysconfdir)/sudoers.d/liveuser
76 77 $(INSTALL_DATA) openmamba-installer.desktop $(DESTDIR)$(SYSTEM_MENU_DIR)
77 78 cp -a liveuser/.kde4 $(DESTDIR)/home/liveuser/
  1 +[Unit]
  2 +Description=Eject the DVD
  3 +Before=final.target
  4 +After=shutdown.target
  5 +DefaultDependencies=no
  6 +
  7 +[Service]
  8 +Type=oneshot
  9 +ExecStart=/usr/bin/eject -m
  10 +StandardInput=tty-force
  11 +StandardOutput=inherit
  12 +StandardError=inherit
  13 +
  14 +[Install]
  15 +WantedBy=shutdown.target