mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 10:51:20 +03:00
54e4fdef80
This commit consists of the initial work to include MeeGo as a ported distribution for systemd. The majority of the changes are small configuration additions to auto tools, so that MeeGo is identified as a valid distribution option. Some small deviations will be noticed between the configuration of MeeGo and other distributions. As MeeGo is a distribution striving for compliancy to support its near embedded attributes and target users, there is less user configuration options available by default. Most services will be enabled by systemd as part of the distribution requirements, and as such most links and service files will be pre-setup for the MeeGo distribution. As much of this is going to be done within the MeeGo distribution packaging this is still noteworthy to mention, as it explains why in systemd you will observe configuration differences where the MeeGo distribution removes all links in the pkgsysconfdir for instance. MeeGo will be user configurable if there is desire, but most services will be enabled by the distribution as designated by the MeeGo compliancy standards. Other changes are in source to add such areas as meego-release defined in utils, and hostname in hostname-setup, defining vconsole-setup, localizations and rescue additions as needed. As this is all ground work, MeeGo will continue to strive for complete compatibility.
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
# 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.
|
|
|
|
# See systemd.special(7) for details
|
|
|
|
[Unit]
|
|
Description=Rescue Shell
|
|
DefaultDependencies=no
|
|
Conflicts=shutdown.target
|
|
After=basic.target
|
|
Before=shutdown.target
|
|
|
|
[Service]
|
|
Environment=HOME=/root
|
|
WorkingDirectory=/root
|
|
ExecStartPre=-/bin/plymouth quit
|
|
ExecStartPre=-/bin/echo 'Welcome to rescue mode. Use "systemctl default" or ^D to activate default mode.'
|
|
m4_ifdef(`TARGET_FEDORA',
|
|
`EnvironmentFile=/etc/sysconfig/init
|
|
ExecStart=-/bin/bash -c "exec ${SINGLE}"',
|
|
m4_ifdef(`TARGET_MANDRIVA',
|
|
`EnvironmentFile=/etc/sysconfig/init
|
|
ExecStart=-/bin/bash -c "exec ${SINGLE}"',
|
|
`ExecStart=-/sbin/sulogin'
|
|
m4_ifdef(`TARGET_MEEGO',
|
|
`EnvironmentFile=/etc/sysconfig/init
|
|
ExecStart=-/bin/bash -c "exec ${SINGLE}"',)))
|
|
ExecStopPost=-/bin/systemctl --fail --no-block default
|
|
StandardInput=tty-force
|
|
KillMode=process
|
|
|
|
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
|
|
# terminates cleanly.
|
|
KillSignal=SIGHUP
|