Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
steam
systemd
Commits
64e5f1b7
Commit
64e5f1b7
authored
Mar 01, 2011
by
Lennart Poettering
Browse files
systemctl: add condreload alias for compat with ALTLinux
parent
6221fcdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/systemctl.c
View file @
64e5f1b7
...
...
@@ -1421,6 +1421,7 @@ static int start_unit(DBusConnection *bus, char **args, unsigned n) {
streq
(
args
[
0
],
"condrestart"
)
?
"TryRestartUnit"
:
streq
(
args
[
0
],
"reload-or-restart"
)
?
"ReloadOrRestartUnit"
:
streq
(
args
[
0
],
"reload-or-try-restart"
)
||
streq
(
args
[
0
],
"condreload"
)
||
streq
(
args
[
0
],
"force-reload"
)
?
"ReloadOrTryRestartUnit"
:
"StartUnit"
;
...
...
@@ -5166,6 +5167,7 @@ static int systemctl_main(DBusConnection *bus, int argc, char *argv[], DBusError
{
"reload-or-restart"
,
MORE
,
2
,
start_unit
},
{
"reload-or-try-restart"
,
MORE
,
2
,
start_unit
},
{
"force-reload"
,
MORE
,
2
,
start_unit
},
/* For compatibility with SysV */
{
"condreload"
,
MORE
,
2
,
start_unit
},
/* For compatibility with ALTLinux */
{
"condrestart"
,
MORE
,
2
,
start_unit
},
/* For compatibility with RH */
{
"isolate"
,
EQUAL
,
2
,
start_unit
},
{
"kill"
,
MORE
,
2
,
kill_unit
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment