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
edfeab38
Commit
edfeab38
authored
Jan 05, 2012
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pwr start/stop script fix (refs #5)
parent
6e68bad6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
138 additions
and
46 deletions
+138
-46
src/tools/pkg/deb/pwrrt/pwr
src/tools/pkg/deb/pwrrt/pwr
+12
-2
src/tools/pkg/deb_x86_64/pwrrt/pwr
src/tools/pkg/deb_x86_64/pwrrt/pwr
+12
-2
src/tools/pkg/rpm/pwrrt/pwr
src/tools/pkg/rpm/pwrrt/pwr
+12
-2
src/tools/pkg/suse/pwrrt/pwr
src/tools/pkg/suse/pwrrt/pwr
+12
-2
src/tools/pkg/ubu/pwrrt/pwr
src/tools/pkg/ubu/pwrrt/pwr
+45
-19
src/tools/pkg/ubu_x86_64/pwrrt/pwr
src/tools/pkg/ubu_x86_64/pwrrt/pwr
+45
-19
No files found.
src/tools/pkg/deb/pwrrt/pwr
View file @
edfeab38
#!/bin/bash
### BEGIN INIT INFO
# Provides: pwr
# Required-Start: networking
# Required-Stop: networking
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start Proview Runtime Environment.
# Description: Start Proview Runtime Environment.
### END INIT INFO
#
# Start
script fr PWR
# Start
script for Proview runtime
#
PATH
=
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
...
...
@@ -133,7 +143,7 @@ case "$1"
echo
"Done."
;;
*
)
echo
" pwr
sev
Start and stop Proview Storage Environment"
>
&2
echo
" pwr Start and stop Proview Storage Environment"
>
&2
echo
""
>
&2
echo
" Usage:"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
...
...
src/tools/pkg/deb_x86_64/pwrrt/pwr
View file @
edfeab38
#!/bin/bash
### BEGIN INIT INFO
# Provides: pwr
# Required-Start: networking
# Required-Stop: networking
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start Proview Runtime Environment.
# Description: Start Proview Runtime Environment.
### END INIT INFO
#
# Start
script fr PWR
# Start
script for Proview runtime
#
PATH
=
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
...
...
@@ -133,7 +143,7 @@ case "$1"
echo
"Done."
;;
*
)
echo
" pwr
sev
Start and stop Proview Storage Environment"
>
&2
echo
" pwr Start and stop Proview Storage Environment"
>
&2
echo
""
>
&2
echo
" Usage:"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
...
...
src/tools/pkg/rpm/pwrrt/pwr
View file @
edfeab38
#!/bin/bash
### BEGIN INIT INFO
# Provides: pwr
# Required-Start: networking
# Required-Stop: networking
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start Proview Runtime Environment.
# Description: Start Proview Runtime Environment.
### END INIT INFO
#
# Start
script fr PWR
# Start
script for Proview runtime
#
PATH
=
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
...
...
@@ -133,7 +143,7 @@ case "$1"
echo
"Done."
;;
*
)
echo
" pwr
sev
Start and stop Proview Storage Environment"
>
&2
echo
" pwr Start and stop Proview Storage Environment"
>
&2
echo
""
>
&2
echo
" Usage:"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
...
...
src/tools/pkg/suse/pwrrt/pwr
View file @
edfeab38
#!/bin/bash
### BEGIN INIT INFO
# Provides: pwr
# Required-Start: networking
# Required-Stop: networking
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start Proview Runtime Environment.
# Description: Start Proview Runtime Environment.
### END INIT INFO
#
# Start
script fr PWR
# Start
script for Proview runtime
#
PATH
=
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
...
...
@@ -133,7 +143,7 @@ case "$1"
echo
"Done."
;;
*
)
echo
" pwr
sev
Start and stop Proview Storage Environment"
>
&2
echo
" pwr Start and stop Proview Storage Environment"
>
&2
echo
""
>
&2
echo
" Usage:"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
...
...
src/tools/pkg/ubu/pwrrt/pwr
View file @
edfeab38
#!/bin/bash
### BEGIN INIT INFO
# Provides: pwr
# Required-Start: networking
# Required-Stop: networking
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start Proview Runtime Environment.
# Description: Start Proview Runtime Environment.
### END INIT INFO
#
# Start
script fr PWR
# Start
script for Proview runtime
#
PATH
=
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
...
...
@@ -27,14 +37,15 @@ create_wrapper()
create_killer
()
{
if
[
!
-e
$killer
]
;
then
echo
"#!/bin/bash"
>
$killer
echo
"source /etc/pwrp_profile"
>>
$killer
echo
"umask 002"
>>
$killer
echo
"kill -9
`
ps ax |
grep
"rt_"
|
awk
'{ print $1}'
`
"
>>
$killer
echo
"kill -9
`
ps ax |
grep
"rs_"
|
awk
'{ print $1}'
`
"
>>
$killer
echo
"kill -9
`
ps ax |
grep
"ra_"
|
awk
'{ print $1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"rt_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"rs_"
|
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
"opc_"
|
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
-q
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2}'
`
"
>>
$killer
...
...
@@ -46,7 +57,6 @@ create_killer()
echo
"
$killer
not writable, check permissions"
exit
fi
fi
}
...
...
@@ -99,36 +109,52 @@ pwr_kill()
case
"
$1
"
in
start
)
echo
"Start
ar PWR
."
echo
"Start
Proview Runtime Environment
."
pwr_start
echo
"
Klar
."
echo
"
Done
."
;;
stop
)
echo
"Stop
par PWR..
."
echo
"Stop
Proveiw Runtime Environment
."
pwr_stop
echo
"
Klar
"
echo
"
Done.
"
;;
restart
)
echo
"
Startar om PWR
."
echo
"
Stoppar det frst
."
echo
"
Restart Proview Runtime Environment
."
echo
"
Closing down..
."
pwr_stop
sleep
1
echo
"Start
ar igen
."
echo
"Start
ing..
."
pwr_start
echo
"
Klar
."
echo
"
Done
."
;;
reload
)
echo
"
PWR varmomstart
"
echo
"
Reload Proview Runtime Environment
"
pwr_reload
echo
"
Klar
."
echo
"
Done
."
;;
kill
)
echo
"
Tar bort delat minne och kvarblivna applikationer frn PWR
"
echo
"
Remove all processes and resources for Proview Storage Environment
"
pwr_kill
echo
"Klar."
echo
"Done."
;;
reset
)
echo
"Remove all processes and resources for Proview Storage Environment"
pwr_kill
echo
"Done."
;;
*
)
echo
"Usage:{start|stop|restart|reload|kill}"
>
&2
echo
" pwr Start and stop Proview Storage Environment"
>
&2
echo
""
>
&2
echo
" Usage:"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
echo
""
>
&2
echo
" start Start Runtime environment"
>
&2
echo
" stop Stop Runtime environment"
>
&2
echo
" restart First stop and then start Runtime environment"
>
&2
echo
" reload Soft restart of Runtime environment"
>
&2
echo
" reset Remove all processes and resources"
>
&2
echo
""
>
&2
exit
1
;;
esac
...
...
src/tools/pkg/ubu_x86_64/pwrrt/pwr
View file @
edfeab38
#!/bin/bash
### BEGIN INIT INFO
# Provides: pwr
# Required-Start: networking
# Required-Stop: networking
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start Proview Runtime Environment.
# Description: Start Proview Runtime Environment.
### END INIT INFO
#
# Start
script fr PWR
# Start
script for Proview runtime
#
PATH
=
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
...
...
@@ -27,14 +37,15 @@ create_wrapper()
create_killer
()
{
if
[
!
-e
$killer
]
;
then
echo
"#!/bin/bash"
>
$killer
echo
"source /etc/pwrp_profile"
>>
$killer
echo
"umask 002"
>>
$killer
echo
"kill -9
`
ps ax |
grep
"rt_"
|
awk
'{ print $1}'
`
"
>>
$killer
echo
"kill -9
`
ps ax |
grep
"rs_"
|
awk
'{ print $1}'
`
"
>>
$killer
echo
"kill -9
`
ps ax |
grep
"ra_"
|
awk
'{ print $1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"rt_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"rs_"
|
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
"opc_"
|
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
-q
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2}'
`
"
>>
$killer
...
...
@@ -46,7 +57,6 @@ create_killer()
echo
"
$killer
not writable, check permissions"
exit
fi
fi
}
...
...
@@ -99,36 +109,52 @@ pwr_kill()
case
"
$1
"
in
start
)
echo
"Start
ar PWR
."
echo
"Start
Proview Runtime Environment
."
pwr_start
echo
"
Klar
."
echo
"
Done
."
;;
stop
)
echo
"Stop
par PWR..
."
echo
"Stop
Proveiw Runtime Environment
."
pwr_stop
echo
"
Klar
"
echo
"
Done.
"
;;
restart
)
echo
"
Startar om PWR
."
echo
"
Stoppar det frst
."
echo
"
Restart Proview Runtime Environment
."
echo
"
Closing down..
."
pwr_stop
sleep
1
echo
"Start
ar igen
."
echo
"Start
ing..
."
pwr_start
echo
"
Klar
."
echo
"
Done
."
;;
reload
)
echo
"
PWR varmomstart
"
echo
"
Reload Proview Runtime Environment
"
pwr_reload
echo
"
Klar
."
echo
"
Done
."
;;
kill
)
echo
"
Tar bort delat minne och kvarblivna applikationer frn PWR
"
echo
"
Remove all processes and resources for Proview Storage Environment
"
pwr_kill
echo
"Klar."
echo
"Done."
;;
reset
)
echo
"Remove all processes and resources for Proview Storage Environment"
pwr_kill
echo
"Done."
;;
*
)
echo
"Usage:{start|stop|restart|reload|kill}"
>
&2
echo
" pwr Start and stop Proview Storage Environment"
>
&2
echo
""
>
&2
echo
" Usage:"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
echo
""
>
&2
echo
" start Start Runtime environment"
>
&2
echo
" stop Stop Runtime environment"
>
&2
echo
" restart First stop and then start Runtime environment"
>
&2
echo
" reload Soft restart of Runtime environment"
>
&2
echo
" reset Remove all processes and resources"
>
&2
echo
""
>
&2
exit
1
;;
esac
...
...
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