From: Lennart Poettering Date: Fri, 18 Jun 2010 19:56:21 +0000 (+0200) Subject: unit: add [Install] section to various service files X-Git-Tag: v1~152 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d88bf660dae270c051c8319bba62c58a50c9d2b;p=systemd unit: add [Install] section to various service files --- diff --git a/units/fedora/prefdm.service b/units/fedora/prefdm.service index 3428026c..2f4333f3 100644 --- a/units/fedora/prefdm.service +++ b/units/fedora/prefdm.service @@ -14,3 +14,6 @@ Conflicts=shutdown.target [Service] ExecStart=/etc/X11/prefdm -nodaemon + +[Install] +Alias=display-manager.service diff --git a/units/getty@.service.m4 b/units/getty@.service.m4 index 8f3f628b..5f6944fa 100644 --- a/units/getty@.service.m4 +++ b/units/getty@.service.m4 @@ -23,3 +23,11 @@ ExecStart=GETTY %I Restart=restart-always RestartSec=0 KillMode=process-group + +[Install] +Alias=getty.target.wants/getty@tty1.service +Alias=getty.target.wants/getty@tty2.service +Alias=getty.target.wants/getty@tty3.service +Alias=getty.target.wants/getty@tty4.service +Alias=getty.target.wants/getty@tty5.service +Alias=getty.target.wants/getty@tty6.service diff --git a/units/graphical.target.m4 b/units/graphical.target.m4 index 98555adc..6228026d 100644 --- a/units/graphical.target.m4 +++ b/units/graphical.target.m4 @@ -20,3 +20,9 @@ Names=runlevel5.target m4_ifdef(`TARGET_SUSE', Names=runlevel5.target )m4_dnl + +[Install] +Alias=default.target +m4_ifdef(`TARGET_FEDORA', +Alias=runlevel5.target +)m4_dnl diff --git a/units/halt.target b/units/halt.target index 9c735ea7..77b40442 100644 --- a/units/halt.target +++ b/units/halt.target @@ -11,3 +11,6 @@ Description=Halt Requires=halt.service After=halt.service + +[Install] +Alias=ctrl-alt-del.target diff --git a/units/multi-user.target.m4 b/units/multi-user.target.m4 index 2cc74893..eb46b2b4 100644 --- a/units/multi-user.target.m4 +++ b/units/multi-user.target.m4 @@ -20,3 +20,11 @@ Names=runlevel3.target m4_ifdef(`TARGET_SUSE', Names=runlevel3.target )m4_dnl + +[Install] +Alias=default.target +m4_ifdef(`TARGET_FEDORA', +Alias=runlevel2.target +Alias=runlevel3.target +Alias=runlevel4.target +)m4_dnl diff --git a/units/poweroff.target b/units/poweroff.target index fe915c0a..b2b56b28 100644 --- a/units/poweroff.target +++ b/units/poweroff.target @@ -12,3 +12,6 @@ Description=Power-Off Names=runlevel0.target Requires=poweroff.service After=poweroff.service + +[Install] +Alias=ctrl-alt-del.target diff --git a/units/reboot.target b/units/reboot.target index 3b03dbd2..b3be52ff 100644 --- a/units/reboot.target +++ b/units/reboot.target @@ -12,3 +12,6 @@ Description=Reboot Names=runlevel6.target Requires=reboot.service After=reboot.service + +[Install] +Alias=ctrl-alt-del.target diff --git a/units/rescue.target b/units/rescue.target index 8234f1a2..0398f9bf 100644 --- a/units/rescue.target +++ b/units/rescue.target @@ -12,3 +12,6 @@ Description=Rescue Prompt Requires=basic.target After=basic.target Names=runlevel1.target + +[Install] +Alias=kbrequest.target diff --git a/units/var-lock.mount b/units/var-lock.mount index dbfee59a..a7668da8 100644 --- a/units/var-lock.mount +++ b/units/var-lock.mount @@ -13,3 +13,6 @@ Before=local-fs.target What=tmpfs Where=/var/lock Type=tmpfs + +[Install] +WantedBy=local-fs.target diff --git a/units/var-run.mount b/units/var-run.mount index add284ae..c082507b 100644 --- a/units/var-run.mount +++ b/units/var-run.mount @@ -13,3 +13,6 @@ Before=local-fs.target What=tmpfs Where=/var/run Type=tmpfs + +[Install] +WantedBy=local-fs.target