1 |
jpp |
1.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 |