Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
845c224f
Commit
845c224f
authored
Sep 21, 2012
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pwr kill bugfix, plc wasn't removed
parent
e274a910
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
77 additions
and
32 deletions
+77
-32
src/tools/pkg/cygwin/pwrrt/pwr
src/tools/pkg/cygwin/pwrrt/pwr
+8
-3
src/tools/pkg/deb/pwrrt/pwr
src/tools/pkg/deb/pwrrt/pwr
+9
-4
src/tools/pkg/deb_armel/pwrrt/pwr
src/tools/pkg/deb_armel/pwrrt/pwr
+8
-3
src/tools/pkg/deb_x86_64/pwrrt/pwr
src/tools/pkg/deb_x86_64/pwrrt/pwr
+9
-4
src/tools/pkg/openbsd/pwrrt/pwr
src/tools/pkg/openbsd/pwrrt/pwr
+7
-2
src/tools/pkg/rpm/pwrrt/pwr
src/tools/pkg/rpm/pwrrt/pwr
+9
-4
src/tools/pkg/suse/pwrrt/pwr
src/tools/pkg/suse/pwrrt/pwr
+9
-4
src/tools/pkg/ubu/pwrrt/pwr
src/tools/pkg/ubu/pwrrt/pwr
+9
-4
src/tools/pkg/ubu_x86_64/pwrrt/pwr
src/tools/pkg/ubu_x86_64/pwrrt/pwr
+9
-4
No files found.
src/tools/pkg/cygwin/pwrrt/pwr
View file @
845c224f
...
@@ -36,10 +36,15 @@ create_killer()
...
@@ -36,10 +36,15 @@ create_killer()
echo
"
`
ps ax |
grep
"ra_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"ra_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"sev_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"sev_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"opc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"opc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"plc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"jpwr.rt"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"eval
`
ipcs
-s
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm sem %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-s
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm sem %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-q
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-q
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-m
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm shm %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-m
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm shm %s;", $2}'
`
"
>>
$killer
echo
"if [ -e
$pwrp_exe
/pwrp_stop.sh ]; then"
>>
$killer
echo
" source
$pwrp_exe
/pwrp_stop.sh"
>>
$killer
echo
"fi"
>>
$killer
echo
"rm /tmp/pwr*
\$
PWR_BUS_ID"
>>
$killer
echo
"rm /tmp/pwr*
\$
PWR_BUS_ID"
>>
$killer
chmod
a+rx
$killer
chmod
a+rx
$killer
...
@@ -123,17 +128,17 @@ case "$1"
...
@@ -123,17 +128,17 @@ case "$1"
echo
"Done."
echo
"Done."
;;
;;
kill
)
kill
)
echo
"Remove all processes and resources for Proview
Storag
e Environment"
echo
"Remove all processes and resources for Proview
Runtim
e Environment"
pwr_kill
pwr_kill
echo
"Done."
echo
"Done."
;;
;;
reset
)
reset
)
echo
"Remove all processes and resources for Proview
Storag
e Environment"
echo
"Remove all processes and resources for Proview
Runtim
e Environment"
pwr_kill
pwr_kill
echo
"Done."
echo
"Done."
;;
;;
*
)
*
)
echo
" pwrsev Start and stop Proview
Storag
e Environment"
>
&2
echo
" pwrsev Start and stop Proview
Runtim
e Environment"
>
&2
echo
""
>
&2
echo
""
>
&2
echo
" Usage:"
>
&2
echo
" Usage:"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
...
...
src/tools/pkg/deb/pwrrt/pwr
View file @
845c224f
...
@@ -46,12 +46,17 @@ create_killer()
...
@@ -46,12 +46,17 @@ create_killer()
echo
"
`
ps ax |
grep
"ra_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"ra_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"sev_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"sev_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"opc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"opc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"plc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"jpwr.rt"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"eval
`
ipcs
-s
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm sem %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-s
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm sem %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-q
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-q
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-m
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm shm %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-m
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm shm %s;", $2}'
`
"
>>
$killer
echo
"if [ -e
$pwrp_exe
/pwrp_stop.sh ]; then"
>>
$killer
echo
" source
$pwrp_exe
/pwrp_stop.sh"
>>
$killer
echo
"fi"
>>
$killer
echo
"rm /tmp/pwr*
\$
PWR_BUS_ID"
>>
$killer
echo
"rm /tmp/pwr*
\$
PWR_BUS_ID"
>>
$killer
chmod
a+rx
$killer
chmod
a+rx
$killer
if
[
!
-e
$killer
]
;
then
if
[
!
-e
$killer
]
;
then
echo
"
$killer
not writable, check permissions"
echo
"
$killer
not writable, check permissions"
...
@@ -133,17 +138,17 @@ case "$1"
...
@@ -133,17 +138,17 @@ case "$1"
echo
"Done."
echo
"Done."
;;
;;
kill
)
kill
)
echo
"Remove all processes and resources for Proview
Storag
e Environment"
echo
"Remove all processes and resources for Proview
Runtim
e Environment"
pwr_kill
pwr_kill
echo
"Done."
echo
"Done."
;;
;;
reset
)
reset
)
echo
"Remove all processes and resources for Proview
Storag
e Environment"
echo
"Remove all processes and resources for Proview
Runtim
e Environment"
pwr_kill
pwr_kill
echo
"Done."
echo
"Done."
;;
;;
*
)
*
)
echo
" pwr Start and stop Proview
Storag
e Environment"
>
&2
echo
" pwr Start and stop Proview
Runtim
e Environment"
>
&2
echo
""
>
&2
echo
""
>
&2
echo
" Usage:"
>
&2
echo
" Usage:"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
...
...
src/tools/pkg/deb_armel/pwrrt/pwr
View file @
845c224f
...
@@ -42,10 +42,15 @@ create_killer()
...
@@ -42,10 +42,15 @@ create_killer()
echo
"
`
ps ax |
grep
"ra_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"ra_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"sev_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"sev_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"opc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"opc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"plc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"jpwr.rt"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"eval
`
ipcs
-s
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm sem %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-s
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm sem %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-q
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-q
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-m
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm shm %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-m
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm shm %s;", $2}'
`
"
>>
$killer
echo
"if [ -e
$pwrp_exe
/pwrp_stop.sh ]; then"
>>
$killer
echo
" source
$pwrp_exe
/pwrp_stop.sh"
>>
$killer
echo
"fi"
>>
$killer
echo
"rm /tmp/pwr*
\$
PWR_BUS_ID"
>>
$killer
echo
"rm /tmp/pwr*
\$
PWR_BUS_ID"
>>
$killer
chmod
a+rx
$killer
chmod
a+rx
$killer
...
@@ -129,17 +134,17 @@ case "$1"
...
@@ -129,17 +134,17 @@ case "$1"
echo
"Done."
echo
"Done."
;;
;;
kill
)
kill
)
echo
"Remove all processes and resources for Proview
Storag
e Environment"
echo
"Remove all processes and resources for Proview
Runtim
e Environment"
pwr_kill
pwr_kill
echo
"Done."
echo
"Done."
;;
;;
reset
)
reset
)
echo
"Remove all processes and resources for Proview
Storag
e Environment"
echo
"Remove all processes and resources for Proview
Runtim
e Environment"
pwr_kill
pwr_kill
echo
"Done."
echo
"Done."
;;
;;
*
)
*
)
echo
" pwrsev Start and stop Proview
Storag
e Environment"
>
&2
echo
" pwrsev Start and stop Proview
Runtim
e Environment"
>
&2
echo
""
>
&2
echo
""
>
&2
echo
" Usage:"
>
&2
echo
" Usage:"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
...
...
src/tools/pkg/deb_x86_64/pwrrt/pwr
View file @
845c224f
...
@@ -46,12 +46,17 @@ create_killer()
...
@@ -46,12 +46,17 @@ create_killer()
echo
"
`
ps ax |
grep
"ra_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"ra_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"sev_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"sev_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"opc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"opc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"plc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"jpwr.rt"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"eval
`
ipcs
-s
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm sem %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-s
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm sem %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-q
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-q
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-m
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm shm %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-m
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm shm %s;", $2}'
`
"
>>
$killer
echo
"if [ -e
$pwrp_exe
/pwrp_stop.sh ]; then"
>>
$killer
echo
" source
$pwrp_exe
/pwrp_stop.sh"
>>
$killer
echo
"fi"
>>
$killer
echo
"rm /tmp/pwr*
\$
PWR_BUS_ID"
>>
$killer
echo
"rm /tmp/pwr*
\$
PWR_BUS_ID"
>>
$killer
chmod
a+rx
$killer
chmod
a+rx
$killer
if
[
!
-e
$killer
]
;
then
if
[
!
-e
$killer
]
;
then
echo
"
$killer
not writable, check permissions"
echo
"
$killer
not writable, check permissions"
...
@@ -133,17 +138,17 @@ case "$1"
...
@@ -133,17 +138,17 @@ case "$1"
echo
"Done."
echo
"Done."
;;
;;
kill
)
kill
)
echo
"Remove all processes and resources for Proview
Storag
e Environment"
echo
"Remove all processes and resources for Proview
Runtim
e Environment"
pwr_kill
pwr_kill
echo
"Done."
echo
"Done."
;;
;;
reset
)
reset
)
echo
"Remove all processes and resources for Proview
Storag
e Environment"
echo
"Remove all processes and resources for Proview
Runtim
e Environment"
pwr_kill
pwr_kill
echo
"Done."
echo
"Done."
;;
;;
*
)
*
)
echo
" pwr Start and stop Proview
Storag
e Environment"
>
&2
echo
" pwr Start and stop Proview
Runtim
e Environment"
>
&2
echo
""
>
&2
echo
""
>
&2
echo
" Usage:"
>
&2
echo
" Usage:"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
...
...
src/tools/pkg/openbsd/pwrrt/pwr
View file @
845c224f
...
@@ -36,10 +36,15 @@ create_killer()
...
@@ -36,10 +36,15 @@ create_killer()
echo
"
`
ps ax |
grep
"ra_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"ra_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"sev_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"sev_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"opc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"opc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"plc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"jpwr.rt"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"eval
`
ipcs
-s
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm sem %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-s
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm sem %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-q
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-q
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-m
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm shm %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-m
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm shm %s;", $2}'
`
"
>>
$killer
echo
"if [ -e
$pwrp_exe
/pwrp_stop.sh ]; then"
>>
$killer
echo
" source
$pwrp_exe
/pwrp_stop.sh"
>>
$killer
echo
"fi"
>>
$killer
echo
"rm /tmp/pwr*
\$
PWR_BUS_ID"
>>
$killer
echo
"rm /tmp/pwr*
\$
PWR_BUS_ID"
>>
$killer
chmod
a+rx
$killer
chmod
a+rx
$killer
...
@@ -123,12 +128,12 @@ case "$1"
...
@@ -123,12 +128,12 @@ case "$1"
echo
"Done."
echo
"Done."
;;
;;
kill
)
kill
)
echo
"Remove all processes and resources for Proview
Storag
e Environment"
echo
"Remove all processes and resources for Proview
Runtim
e Environment"
pwr_kill
pwr_kill
echo
"Done."
echo
"Done."
;;
;;
reset
)
reset
)
echo
"Remove all processes and resources for Proview
Storag
e Environment"
echo
"Remove all processes and resources for Proview
Runtim
e Environment"
pwr_kill
pwr_kill
echo
"Done."
echo
"Done."
;;
;;
...
...
src/tools/pkg/rpm/pwrrt/pwr
View file @
845c224f
...
@@ -46,12 +46,17 @@ create_killer()
...
@@ -46,12 +46,17 @@ create_killer()
echo
"
`
ps ax |
grep
"ra_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"ra_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"sev_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"sev_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"opc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"opc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"plc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"jpwr.rt"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"eval
`
ipcs
-s
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm sem %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-s
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm sem %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-q
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-q
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-m
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm shm %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-m
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm shm %s;", $2}'
`
"
>>
$killer
echo
"if [ -e
$pwrp_exe
/pwrp_stop.sh ]; then"
>>
$killer
echo
" source
$pwrp_exe
/pwrp_stop.sh"
>>
$killer
echo
"fi"
>>
$killer
echo
"rm /tmp/pwr*
\$
PWR_BUS_ID"
>>
$killer
echo
"rm /tmp/pwr*
\$
PWR_BUS_ID"
>>
$killer
chmod
a+rx
$killer
chmod
a+rx
$killer
if
[
!
-e
$killer
]
;
then
if
[
!
-e
$killer
]
;
then
echo
"
$killer
not writable, check permissions"
echo
"
$killer
not writable, check permissions"
...
@@ -133,17 +138,17 @@ case "$1"
...
@@ -133,17 +138,17 @@ case "$1"
echo
"Done."
echo
"Done."
;;
;;
kill
)
kill
)
echo
"Remove all processes and resources for Proview
Storag
e Environment"
echo
"Remove all processes and resources for Proview
Runtim
e Environment"
pwr_kill
pwr_kill
echo
"Done."
echo
"Done."
;;
;;
reset
)
reset
)
echo
"Remove all processes and resources for Proview
Storag
e Environment"
echo
"Remove all processes and resources for Proview
Runtim
e Environment"
pwr_kill
pwr_kill
echo
"Done."
echo
"Done."
;;
;;
*
)
*
)
echo
" pwr Start and stop Proview
Storag
e Environment"
>
&2
echo
" pwr Start and stop Proview
Runtim
e Environment"
>
&2
echo
""
>
&2
echo
""
>
&2
echo
" Usage:"
>
&2
echo
" Usage:"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
...
...
src/tools/pkg/suse/pwrrt/pwr
View file @
845c224f
...
@@ -46,12 +46,17 @@ create_killer()
...
@@ -46,12 +46,17 @@ create_killer()
echo
"
`
ps ax |
grep
"ra_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"ra_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"sev_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"sev_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"opc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"opc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"plc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"jpwr.rt"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"eval
`
ipcs
-s
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm sem %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-s
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm sem %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-q
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-q
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-m
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm shm %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-m
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm shm %s;", $2}'
`
"
>>
$killer
echo
"if [ -e
$pwrp_exe
/pwrp_stop.sh ]; then"
>>
$killer
echo
" source
$pwrp_exe
/pwrp_stop.sh"
>>
$killer
echo
"fi"
>>
$killer
echo
"rm /tmp/pwr*
\$
PWR_BUS_ID"
>>
$killer
echo
"rm /tmp/pwr*
\$
PWR_BUS_ID"
>>
$killer
chmod
a+rx
$killer
chmod
a+rx
$killer
if
[
!
-e
$killer
]
;
then
if
[
!
-e
$killer
]
;
then
echo
"
$killer
not writable, check permissions"
echo
"
$killer
not writable, check permissions"
...
@@ -133,17 +138,17 @@ case "$1"
...
@@ -133,17 +138,17 @@ case "$1"
echo
"Done."
echo
"Done."
;;
;;
kill
)
kill
)
echo
"Remove all processes and resources for Proview
Storag
e Environment"
echo
"Remove all processes and resources for Proview
Runtim
e Environment"
pwr_kill
pwr_kill
echo
"Done."
echo
"Done."
;;
;;
reset
)
reset
)
echo
"Remove all processes and resources for Proview
Storag
e Environment"
echo
"Remove all processes and resources for Proview
Runtim
e Environment"
pwr_kill
pwr_kill
echo
"Done."
echo
"Done."
;;
;;
*
)
*
)
echo
" pwr Start and stop Proview
Storag
e Environment"
>
&2
echo
" pwr Start and stop Proview
Runtim
e Environment"
>
&2
echo
""
>
&2
echo
""
>
&2
echo
" Usage:"
>
&2
echo
" Usage:"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
...
...
src/tools/pkg/ubu/pwrrt/pwr
View file @
845c224f
...
@@ -46,12 +46,17 @@ create_killer()
...
@@ -46,12 +46,17 @@ create_killer()
echo
"
`
ps ax |
grep
"ra_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"ra_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"sev_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"sev_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"opc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"opc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"plc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"jpwr.rt"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"eval
`
ipcs
-s
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm sem %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-s
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm sem %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-q
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-q
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-m
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm shm %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-m
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm shm %s;", $2}'
`
"
>>
$killer
echo
"if [ -e
$pwrp_exe
/pwrp_stop.sh ]; then"
>>
$killer
echo
" source
$pwrp_exe
/pwrp_stop.sh"
>>
$killer
echo
"fi"
>>
$killer
echo
"rm /tmp/pwr*
\$
PWR_BUS_ID"
>>
$killer
echo
"rm /tmp/pwr*
\$
PWR_BUS_ID"
>>
$killer
chmod
a+rx
$killer
chmod
a+rx
$killer
if
[
!
-e
$killer
]
;
then
if
[
!
-e
$killer
]
;
then
echo
"
$killer
not writable, check permissions"
echo
"
$killer
not writable, check permissions"
...
@@ -133,17 +138,17 @@ case "$1"
...
@@ -133,17 +138,17 @@ case "$1"
echo
"Done."
echo
"Done."
;;
;;
kill
)
kill
)
echo
"Remove all processes and resources for Proview
Storag
e Environment"
echo
"Remove all processes and resources for Proview
Runtim
e Environment"
pwr_kill
pwr_kill
echo
"Done."
echo
"Done."
;;
;;
reset
)
reset
)
echo
"Remove all processes and resources for Proview
Storag
e Environment"
echo
"Remove all processes and resources for Proview
Runtim
e Environment"
pwr_kill
pwr_kill
echo
"Done."
echo
"Done."
;;
;;
*
)
*
)
echo
" pwr Start and stop Proview
Storag
e Environment"
>
&2
echo
" pwr Start and stop Proview
Runtim
e Environment"
>
&2
echo
""
>
&2
echo
""
>
&2
echo
" Usage:"
>
&2
echo
" Usage:"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
...
...
src/tools/pkg/ubu_x86_64/pwrrt/pwr
View file @
845c224f
...
@@ -46,12 +46,17 @@ create_killer()
...
@@ -46,12 +46,17 @@ create_killer()
echo
"
`
ps ax |
grep
"ra_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"ra_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"sev_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"sev_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"opc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"opc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"plc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"jpwr.rt"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"eval
`
ipcs
-s
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm sem %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-s
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm sem %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-q
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-q
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-m
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm shm %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-m
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm shm %s;", $2}'
`
"
>>
$killer
echo
"if [ -e
$pwrp_exe
/pwrp_stop.sh ]; then"
>>
$killer
echo
" source
$pwrp_exe
/pwrp_stop.sh"
>>
$killer
echo
"fi"
>>
$killer
echo
"rm /tmp/pwr*
\$
PWR_BUS_ID"
>>
$killer
echo
"rm /tmp/pwr*
\$
PWR_BUS_ID"
>>
$killer
chmod
a+rx
$killer
chmod
a+rx
$killer
if
[
!
-e
$killer
]
;
then
if
[
!
-e
$killer
]
;
then
echo
"
$killer
not writable, check permissions"
echo
"
$killer
not writable, check permissions"
...
@@ -133,17 +138,17 @@ case "$1"
...
@@ -133,17 +138,17 @@ case "$1"
echo
"Done."
echo
"Done."
;;
;;
kill
)
kill
)
echo
"Remove all processes and resources for Proview
Storag
e Environment"
echo
"Remove all processes and resources for Proview
Runtim
e Environment"
pwr_kill
pwr_kill
echo
"Done."
echo
"Done."
;;
;;
reset
)
reset
)
echo
"Remove all processes and resources for Proview
Storag
e Environment"
echo
"Remove all processes and resources for Proview
Runtim
e Environment"
pwr_kill
pwr_kill
echo
"Done."
echo
"Done."
;;
;;
*
)
*
)
echo
" pwr Start and stop Proview
Storag
e Environment"
>
&2
echo
" pwr Start and stop Proview
Runtim
e Environment"
>
&2
echo
""
>
&2
echo
""
>
&2
echo
" Usage:"
>
&2
echo
" Usage:"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment