/[smeserver]/rpms/e-smith-cvm-unix-local/sme10/e-smith-cvm-unix-local-2.6.0-bz11792-alwaysreload.patch
ViewVC logotype

Contents of /rpms/e-smith-cvm-unix-local/sme10/e-smith-cvm-unix-local-2.6.0-bz11792-alwaysreload.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Dec 15 03:39:43 2021 UTC (2 years, 11 months ago) by jpp
Branch: MAIN
CVS Tags: e-smith-cvm-unix-local-2_6_0-7_el7_sme, e-smith-cvm-unix-local-2_6_0-5_el7_sme, e-smith-cvm-unix-local-2_6_0-6_el7_sme, e-smith-cvm-unix-local-2_6_0-4_el7_sme, e-smith-cvm-unix-local-2_6_0-9_el7_sme, e-smith-cvm-unix-local-2_6_0-8_el7_sme, e-smith-cvm-unix-local-2_6_0-10_el7_sme, HEAD
* Tue Dec 14 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-4.sme
- fix service stopping restarting on crash [SME: 11792]

1 diff -Nur --no-dereference e-smith-cvm-unix-local-2.6.0.old/root/sbin/e-smith/systemd/cvm-unix-pre e-smith-cvm-unix-local-2.6.0/root/sbin/e-smith/systemd/cvm-unix-pre
2 --- e-smith-cvm-unix-local-2.6.0.old/root/sbin/e-smith/systemd/cvm-unix-pre 1969-12-31 19:00:00.000000000 -0500
3 +++ e-smith-cvm-unix-local-2.6.0/root/sbin/e-smith/systemd/cvm-unix-pre 2021-12-14 22:36:08.982000000 -0500
4 @@ -0,0 +1,10 @@
5 +#!/bin/sh
6 +
7 +/sbin/e-smith/config show cvm-unix 1>/dev/null || /sbin/e-smith/config set cvm-unix service status enabled
8 +
9 +status=$(/sbin/e-smith/config getprop cvm-unix status)
10 +
11 +if [ "$status" != "enabled" ]
12 +then
13 + /sbin/e-smith/config setprop cvm-unix status disabled
14 +fi
15 diff -Nur --no-dereference e-smith-cvm-unix-local-2.6.0.old/root/usr/lib/systemd/system/cvm-unix.service e-smith-cvm-unix-local-2.6.0/root/usr/lib/systemd/system/cvm-unix.service
16 --- e-smith-cvm-unix-local-2.6.0.old/root/usr/lib/systemd/system/cvm-unix.service 2021-12-14 22:17:54.428000000 -0500
17 +++ e-smith-cvm-unix-local-2.6.0/root/usr/lib/systemd/system/cvm-unix.service 2021-12-14 22:36:08.738000000 -0500
18 @@ -7,8 +7,10 @@
19 User=root
20 Group=root
21 Restart=always
22 -ExecStartPre=-/sbin/e-smith/db configuration set cvm-unix service status enabled
23 -ExecStartPre=-/sbin/e-smith/db configuration setprop cvm-unix status enabled
24 +RestartSec=.5
25 +StartLimitInterval=0
26 +StartLimitBurst=0
27 +ExecStartPre=-/sbin/e-smith/systemd/cvm-unix-pre
28 ExecStart=/usr/bin/cvm-unix cvm-local:/var/lib/cvm/cvm-unix-local.socket
29 ExecStopPost=-/sbin/e-smith/db configuration setprop cvm-unix status enabled
30 TimeoutSec=0

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed