From: Lennart Poettering Date: Tue, 6 Jul 2010 03:25:24 +0000 (+0200) Subject: man: document new systemd-install --start option X-Git-Tag: v1~26 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72f957066d9ccc43699c813d0498fc7f6732a838;p=systemd man: document new systemd-install --start option --- diff --git a/man/daemon.xml b/man/daemon.xml index 01ab0f3b..8e9e9395 100644 --- a/man/daemon.xml +++ b/man/daemon.xml @@ -793,11 +793,11 @@ endif package managers: %post -/usr/bin/systemd-install enable foobar.service foobar.socket >/dev/null 2>&1 || : +/usr/bin/systemd-install --start enable foobar.service foobar.socket >/dev/null 2>&1 || : %preun if [ "$1" -eq 0 ]; then - /usr/bin/systemd-install disable foobar.service foobar.socket >/dev/null 2>&1 || : + /usr/bin/systemd-install --start disable foobar.service foobar.socket >/dev/null 2>&1 || : fi diff --git a/man/systemd-install.xml b/man/systemd-install.xml index 63832aa6..c3ec4bdc 100644 --- a/man/systemd-install.xml +++ b/man/systemd-install.xml @@ -68,10 +68,18 @@ enabled. This command is useful to apply or undo the - installation instructions encoded in the [Install] + installation instructions encoded in the [Install] section of unit files. See systemd.unit5 for more information. + + Enabling units (as with systemd-install + enable) should not be confused with + activating units (as with systemctl + start). The former simply installs the unit + files in the configuration tree, but does not start + them. The latter equals starting them, but does not + necessarily require them to be enabled. @@ -120,6 +128,49 @@ session service for all users. + + + + + After + enabling/disabling stop/restart the + unit and reload manager + configuration. Optionally, takes one + of , + , + or + . If + is passed the + manager will not reload its + configuration and no service will be + started or stopped after + enabling/disabling of the unit + files. If is + passed and a unit is being enabled it + will also be restarted should it + already be running. If a unit is being + disabled it will be stopped should it + be running. In either case the + daemon configuration is + reloaded. is + similar to this, but the unit will + also be started if it is being enabled + and any of the units listed in + WantedBy= in the + [Install] section + of the unit file is already + activated. Finally + starts the unit + unconditionally after enabling. This + setting defaults to + . If the mode value + is omitted defaults to + . This option + has no effect when + or + test is + used. + The following commands are understood: @@ -130,17 +181,19 @@ Enable a unit. This will create a number of symlinks as - encoded in the [Install] section of a - unit file. + encoded in the + [Install] section + of a unit file. disable Disable a unit. This - will removed a number of symlinks as - encoded in the [Install] section of a - unit file. + will remove a number of symlinks as + encoded in the + [Install] section + of a unit file. @@ -150,8 +203,9 @@ the units specified are installed. This will check for the existence of a number of symlinks as - encoded in the [Install] section of a - unit file. + encoded in the + [Install] section + of a unit file.