ALT Linux Bugzilla
– Attachment 4830 Details for
Bug 24989
add systemd support
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
обновлённый
add-systemd-support.patch (text/plain), 980 bytes, created by
Alexey Shabalin
on 2011-03-02 02:19:01 MSK
(
hide
)
Description:
обновлённый
Filename:
MIME Type:
Creator:
Alexey Shabalin
Created:
2011-03-02 02:19:01 MSK
Size:
980 bytes
patch
obsolete
>diff --git a/service/service b/service/service >index 2e5b421..ef1f017 100644 >--- a/service/service >+++ b/service/service >@@ -9,6 +9,8 @@ export PATH > > VERSION="service version 0.91-alt" > SERVICEDIR="/etc/init.d" >+SYSTEMCTL="/bin/systemctl" >+SYSTEMDSERVICEDIR="/lib/systemd/system" > SERVICE= > OPTIONS= > >@@ -35,7 +37,7 @@ check_service() > [ -n "${SERVICE##*/*}" ] || > fatal "$SERVICE: Invalid service name" > >- [ -x "$SERVICEDIR/$SERVICE" ] || >+ [ -x "$SERVICEDIR/$SERVICE" ] || [ -x "$SYSTEMCTL" -a -f "$SYSTEMDSERVICEDIR/${SERVICE}.service" ] || > fatal "$SERVICE: Unrecognized service" > } > >@@ -69,7 +71,13 @@ case "$1" in > shift > check_service > cd / || exit >- "$SERVICEDIR/$SERVICE" "$@" >+ if [ -x "$SYSTEMCTL" ]; then >+ if [-f "$SYSTEMDSERVICEDIR/${SERVICE}.service" -o -x "$SERVICEDIR/$SERVICE" ]; then >+ exec $SYSTEMCTL "$@" ${SERVICE}.service >+ fi >+ elif [ -x "$SERVICEDIR/$SERVICE" ]; then >+ "$SERVICEDIR/$SERVICE" "$@" >+ fi > exit $? > ;; > esac
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 24989
:
4781
|
4830
|
4832
|
4836