SHA256
1
0
forked from pool/systemd
Kay Sievers 2010-08-17 08:40:32 +00:00 committed by Git OBS Bridge
parent a0fd08749e
commit 9754138dbc
3 changed files with 22 additions and 14 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:951cb958080e24b211d4f24d6bf78358295bfda69d5ab301e94c3ccd8f1b90c1
size 644164
oid sha256:7d5ba7f86cbc92ed614230baae34034cefd6830ead204ab9df7d51eded3fd37a
size 650968

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Tue Aug 17 09:01:04 CEST 2010 - kay.sievers@novell.com
- add support for delayed shutdown, similar to sysv in style
- rename Type=finish to Type=oneshot and allow multiple ExecStart=
- don't show ENOENT for non exitent configuration files
- log build time features on startup
- rearrange structs to make them smaller
- move runlevel[2-5] links to /lib
- create default.target link to /lib not /etc
- handle random-seed
- write utmp record before we kill all processes
- create /var/lock/subsys, /var/run/utmp
-------------------------------------------------------------------
Wed Aug 11 11:29:17 CEST 2010 - kay.sievers@novell.com

View File

@ -113,31 +113,29 @@ if [ "$1" -eq 1 ]; then
if [ -z "$runlevel" ] ; then
target="/lib/systemd/system/graphical.target"
else
target="/etc/systemd/system/runlevel$runlevel.target"
target="/lib/systemd/system/runlevel$runlevel.target"
fi
/bin/ln -sf "$target" /etc/systemd/system/default.target 2>&1 || :
# Enable the services we install by default.
# Enable these services by default.
/bin/systemctl enable getty@.service >/dev/null 2>&1 || :
/bin/systemctl enable getty.target >/dev/null 2>&1 || :
/bin/systemctl enable remote-fs.target >/dev/null 2>&1 || :
/bin/systemctl enable var-run.mount >/dev/null 2>&1 || :
/bin/systemctl enable var-lock.mount >/dev/null 2>&1 || :
/bin/systemctl enable var-run.service >/dev/null 2>&1 || :
/bin/systemctl enable var-lock.service >/dev/null 2>&1 || :
fi
# Make sure we always enable these basic services, in case something went
# wrong at the time these packages got installed. Usual systems can not
# properly work without these services.
/bin/systemctl enable udev.service >/dev/null 2>&1 || :
/bin/systemctl enable dbus.service >/dev/null 2>&1 || :
# temporary fix
/bin/systemctl enable getty.target >/dev/null 2>&1 || :
%preun
if [ $1 -eq 0 ]; then
/bin/systemctl disable getty@.service >/dev/null 2>&1 || :
/bin/systemctl disable getty.target >/dev/null 2>&1 || :
/bin/systemctl disable remote-fs.target >/dev/null 2>&1 || :
/bin/systemctl disable var-run.mount >/dev/null 2>&1 || :
/bin/systemctl disable var-lock.mount >/dev/null 2>&1 || :
/bin/systemctl disable var-run.service >/dev/null 2>&1 || :
/bin/systemctl disable var-lock.service >/dev/null 2>&1 || :
rm -f /etc/systemd/system/default.target 2>&1 || :
fi
@ -158,10 +156,6 @@ rm -rf $RPM_BUILD_ROOT
%config(noreplace) %{_sysconfdir}/systemd/system.conf
%config(noreplace) %{_sysconfdir}/systemd/system/ctrl-alt-del.target
%config(noreplace) %{_sysconfdir}/systemd/system/kbrequest.target
%config(noreplace) %{_sysconfdir}/systemd/system/runlevel2.target
%config(noreplace) %{_sysconfdir}/systemd/system/runlevel3.target
%config(noreplace) %{_sysconfdir}/systemd/system/runlevel4.target
%config(noreplace) %{_sysconfdir}/systemd/system/runlevel5.target
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.systemd1.conf
%{_datadir}/dbus-1/interfaces/org.freedesktop.systemd1.*.xml
%{_datadir}/dbus-1/services/org.freedesktop.systemd1.service