From fb1bd35a5dd1ad5cfd848fdbe0d64ac53a122af0 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 17 May 2010 02:17:22 +0200 Subject: unit: properly generate session units --- units/.gitignore | 1 + units/remote-fs.target | 23 ----------------------- units/remote-fs.target.m4 | 27 +++++++++++++++++++++++++++ units/session/Makefile | 1 + 4 files changed, 29 insertions(+), 23 deletions(-) delete mode 100644 units/remote-fs.target create mode 100644 units/remote-fs.target.m4 create mode 120000 units/session/Makefile (limited to 'units') diff --git a/units/.gitignore b/units/.gitignore index 21b3b384c7..7e61543864 100644 --- a/units/.gitignore +++ b/units/.gitignore @@ -5,3 +5,4 @@ basic.target graphical.target multi-user.target getty@.service +remote-fs.target diff --git a/units/remote-fs.target b/units/remote-fs.target deleted file mode 100644 index 177a773c90..0000000000 --- a/units/remote-fs.target +++ /dev/null @@ -1,23 +0,0 @@ -# This file is part of systemd. -# -# Copyright 2010 Lennart Poettering -# -# 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. -# -# systemd is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with systemd; If not, see . - -# See systemd.special(7) for details - -[Unit] -Description=Remote File Systems -Requires=network.target -After=network.target diff --git a/units/remote-fs.target.m4 b/units/remote-fs.target.m4 new file mode 100644 index 0000000000..0891d0b025 --- /dev/null +++ b/units/remote-fs.target.m4 @@ -0,0 +1,27 @@ +# This file is part of systemd. +# +# Copyright 2010 Lennart Poettering +# +# 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. +# +# systemd is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with systemd; If not, see . + +# See systemd.special(7) for details + +[Unit] +Description=Remote File Systems +m4_dnl +m4_ifdef(`FOR_SYSTEM', +m4_dnl When running in system mode we need the network up +Requires=network.target +After=network.target +)m4_dnl diff --git a/units/session/Makefile b/units/session/Makefile new file mode 120000 index 0000000000..50be21181f --- /dev/null +++ b/units/session/Makefile @@ -0,0 +1 @@ +../../src/Makefile \ No newline at end of file -- cgit v1.2.3-54-g00ecf