1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-28 20:25:25 +03:00
systemd-stable/units/debian/umountroot.service
Michael Biebl a5dc0a45fe units: add umount unit files for Debian
Add unit files to call

/etc/init.d/umountnfs.sh stop (network file systems)
/etc/init.d/umountfs stop     (local file systems)
/etc/init.d/umountroot stop   ("/" file system)

in the right order and hook them up in the umount.target so they are run
on shutdown and reboot.
2010-09-08 02:12:38 +02:00

19 lines
537 B
Desktop File

# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
[Unit]
Description=Mount the root file system read-only
DefaultDependencies=no
After=killall.service
Before=reboot.service poweroff.service halt.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/etc/init.d/umountroot stop
StandardOutput=tty