forked from starlingx-staging/sm-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0002-change-sysconfig-dir.patch
89 lines (83 loc) · 3.53 KB
/
0002-change-sysconfig-dir.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
From e06a34fb04a4ce932631ffdc7da1c5308b2118da Mon Sep 17 00:00:00 2001
From: Mingyuan Qi <[email protected]>
Date: Fri, 28 Sep 2018 19:45:40 +0800
Subject: [PATCH 2/2] change sysconfig dir
---
service-mgmt/sm-common-1.0.0/scripts/Makefile | 8 ++++----
service-mgmt/sm-common-1.0.0/scripts/sm-eru.conf | 2 +-
service-mgmt/sm-common-1.0.0/scripts/sm-eru.service | 4 ++--
service-mgmt/sm-common-1.0.0/scripts/sm-watchdog.conf | 2 +-
service-mgmt/sm-common-1.0.0/scripts/sm-watchdog.service | 4 ++--
5 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/service-mgmt/sm-common-1.0.0/scripts/Makefile b/service-mgmt/sm-common-1.0.0/scripts/Makefile
index c142719..9284af2 100644
--- a/service-mgmt/sm-common-1.0.0/scripts/Makefile
+++ b/service-mgmt/sm-common-1.0.0/scripts/Makefile
@@ -1,8 +1,8 @@
install_non_bb:
install -d $(DEST_DIR)$(UNIT_DIR)
install -m 644 *.service $(DEST_DIR)$(UNIT_DIR)
- install -d $(DEST_DIR)/etc/init.d
- install sm-watchdog sm-eru $(DEST_DIR)/etc/init.d
- install -d $(DEST_DIR)/etc/pmon.d
- install *.conf $(DEST_DIR)/etc/pmon.d
+ install -d $(DEST_DIR)${sysconfdir}/init.d
+ install sm-watchdog sm-eru $(DEST_DIR)${sysconfdir}/init.d
+ install -d $(DEST_DIR)${sysconfdir}/pmon.d
+ install *.conf $(DEST_DIR)${sysconfdir}/pmon.d
diff --git a/service-mgmt/sm-common-1.0.0/scripts/sm-eru.conf b/service-mgmt/sm-common-1.0.0/scripts/sm-eru.conf
index 3daf316..b86d9a9 100644
--- a/service-mgmt/sm-common-1.0.0/scripts/sm-eru.conf
+++ b/service-mgmt/sm-common-1.0.0/scripts/sm-eru.conf
@@ -6,7 +6,7 @@
[process]
process = sm-eru
pidfile = /var/run/sm-eru.pid
-script = /etc/init.d/sm-eru
+script = ${sysconfdir}/init.d/sm-eru
style = lsb ; lsb
severity = minor ; minor, major, critical
restarts = 3 ; restarts before error assertion
diff --git a/service-mgmt/sm-common-1.0.0/scripts/sm-eru.service b/service-mgmt/sm-common-1.0.0/scripts/sm-eru.service
index 0c35ffe..96e954f 100644
--- a/service-mgmt/sm-common-1.0.0/scripts/sm-eru.service
+++ b/service-mgmt/sm-common-1.0.0/scripts/sm-eru.service
@@ -7,8 +7,8 @@ Before=pmon.service
Type=forking
RemainAfterExit=yes
User=root
-ExecStart=/etc/init.d/sm-eru start
-ExecStop=/etc/init.d/sm-eru stop
+ExecStart=${sysconfdir}/init.d/sm-eru start
+ExecStop=${sysconfdir}/init.d/sm-eru stop
PIDFile=/var/run/sm-eru.pid
[Install]
diff --git a/service-mgmt/sm-common-1.0.0/scripts/sm-watchdog.conf b/service-mgmt/sm-common-1.0.0/scripts/sm-watchdog.conf
index 8ae37ad..d4ecb77 100644
--- a/service-mgmt/sm-common-1.0.0/scripts/sm-watchdog.conf
+++ b/service-mgmt/sm-common-1.0.0/scripts/sm-watchdog.conf
@@ -6,7 +6,7 @@
[process]
process = sm-watchdog
pidfile = /var/run/sm-watchdog.pid
-script = /etc/init.d/sm-watchdog
+script = ${sysconfdir}/init.d/sm-watchdog
style = lsb ; lsb
severity = major ; minor, major, critical
restarts = 3 ; restarts before error assertion
diff --git a/service-mgmt/sm-common-1.0.0/scripts/sm-watchdog.service b/service-mgmt/sm-common-1.0.0/scripts/sm-watchdog.service
index 5fd147a..9cebed3 100644
--- a/service-mgmt/sm-common-1.0.0/scripts/sm-watchdog.service
+++ b/service-mgmt/sm-common-1.0.0/scripts/sm-watchdog.service
@@ -7,8 +7,8 @@ Before=sm.service pmon.service
Type=forking
RemainAfterExit=yes
User=root
-ExecStart=/etc/init.d/sm-watchdog start
-ExecStop=/etc/init.d/sm-watchdog stop
+ExecStart=${sysconfdir}/init.d/sm-watchdog start
+ExecStop=${sysconfdir}/init.d/sm-watchdog stop
PIDFile=/var/run/sm-watchdog.pid
[Install]
--
2.19.0