1 |
dertobi123 10/01/27 16:47:11 |
2 |
|
3 |
Modified: dsmc.init.d |
4 |
Added: dsmcad.init.d |
5 |
Log: |
6 |
Use newconfd/newinitd, add dsmcad init, fix dsmc init |
7 |
(Portage version: 2.2_rc61/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.2 app-backup/tsm/files/dsmc.init.d |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-backup/tsm/files/dsmc.init.d?rev=1.2&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-backup/tsm/files/dsmc.init.d?rev=1.2&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-backup/tsm/files/dsmc.init.d?r1=1.1&r2=1.2 |
15 |
|
16 |
Index: dsmc.init.d |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-backup/tsm/files/dsmc.init.d,v |
19 |
retrieving revision 1.1 |
20 |
retrieving revision 1.2 |
21 |
diff -u -r1.1 -r1.2 |
22 |
--- dsmc.init.d 26 Jan 2010 19:40:32 -0000 1.1 |
23 |
+++ dsmc.init.d 27 Jan 2010 16:47:11 -0000 1.2 |
24 |
@@ -1,29 +1,28 @@ |
25 |
#!/sbin/runscript |
26 |
-# Copyright 1999-2003 Gentoo Technologies, Inc. |
27 |
+# Copyright 1999-2009 Gentoo Foundation |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-backup/tsm/files/dsmc.init.d,v 1.1 2010/01/26 19:40:32 dertobi123 Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-backup/tsm/files/dsmc.init.d,v 1.2 2010/01/27 16:47:11 dertobi123 Exp $ |
31 |
|
32 |
depend() { |
33 |
- use net |
34 |
- after dns |
35 |
+ use net |
36 |
+ after dns |
37 |
} |
38 |
|
39 |
start() { |
40 |
- ebegin "Starting dsmc" |
41 |
- source /etc/profile |
42 |
- cd /var/log/tivoli |
43 |
- start-stop-daemon --start --background --nicelevel 15 \ |
44 |
- --make-pidfile --pidfile /var/run/dsmc.pid \ |
45 |
- --exec /opt/tivoli/tsm/client/ba/bin/dsmc sched ${DSMC_OPTS} |
46 |
- eend $? |
47 |
+ ebegin "Starting dsmc" |
48 |
+ start-stop-daemon --start --background --nicelevel 15 \ |
49 |
+ --make-pidfile --pidfile /var/run/dsmc.pid \ |
50 |
+ --exec /opt/tivoli/tsm/client/ba/bin/dsmc sched ${DSMC_OPTS} |
51 |
+ eend $? |
52 |
} |
53 |
|
54 |
stop() { |
55 |
- ebegin "Stopping dsmc" |
56 |
- # For whatever reason SIGTERM doesn't affect the dsmc process, but |
57 |
- # SIGHUP makes it exit cleanly |
58 |
- start-stop-daemon --stop \ |
59 |
- --signal 1 \ |
60 |
- --pidfile /var/run/dsmc.pid |
61 |
- eend $? |
62 |
+ ebegin "Stopping dsmc" |
63 |
+ # For whatever reason SIGTERM doesn't affect the dsmc process, but |
64 |
+ # SIGHUP makes it exit cleanly |
65 |
+ start-stop-daemon --stop \ |
66 |
+ --signal 1 \ |
67 |
+ --pidfile /var/run/dsmc.pid |
68 |
+ eend $? |
69 |
} |
70 |
+ |
71 |
|
72 |
|
73 |
|
74 |
1.1 app-backup/tsm/files/dsmcad.init.d |
75 |
|
76 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-backup/tsm/files/dsmcad.init.d?rev=1.1&view=markup |
77 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-backup/tsm/files/dsmcad.init.d?rev=1.1&content-type=text/plain |
78 |
|
79 |
Index: dsmcad.init.d |
80 |
=================================================================== |
81 |
#!/sbin/runscript |
82 |
# Copyright 1999-2009 Gentoo Foundation |
83 |
# Distributed under the terms of the GNU General Public License v2 |
84 |
# $Header: /var/cvsroot/gentoo-x86/app-backup/tsm/files/dsmcad.init.d,v 1.1 2010/01/27 16:47:11 dertobi123 Exp $ |
85 |
|
86 |
depend() { |
87 |
use net |
88 |
after dns dsmc |
89 |
} |
90 |
|
91 |
start() { |
92 |
ebegin "Starting dsmcad" |
93 |
start-stop-daemon --start --background --nicelevel 15 \ |
94 |
--make-pidfile --pidfile /var/run/dsmcad.pid \ |
95 |
--exec /opt/tivoli/tsm/client/ba/bin/dsmcad |
96 |
eend $? |
97 |
} |
98 |
|
99 |
stop() { |
100 |
ebegin "Stopping dsmcad" |
101 |
start-stop-daemon --stop \ |
102 |
--signal 1 \ |
103 |
--pidfile /var/run/dsmcad.pid |
104 |
eend $? |
105 |
} |