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
45bb132b
Commit
45bb132b
authored
Nov 10, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
9d65e164
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
147 additions
and
129 deletions
+147
-129
src/tools/pkg/deb/pwr/control
src/tools/pkg/deb/pwr/control
+5
-16
src/tools/pkg/deb/pwrdemo/control
src/tools/pkg/deb/pwrdemo/control
+3
-3
src/tools/pkg/deb/pwrrt/build.sh
src/tools/pkg/deb/pwrrt/build.sh
+6
-0
src/tools/pkg/deb/pwrrt/control
src/tools/pkg/deb/pwrrt/control
+4
-41
src/tools/pkg/deb/pwrrt/pwr
src/tools/pkg/deb/pwrrt/pwr
+34
-18
src/tools/pkg/deb/pwrrt/pwr.1
src/tools/pkg/deb/pwrrt/pwr.1
+11
-1
src/tools/pkg/deb/pwrsev/build.sh
src/tools/pkg/deb/pwrsev/build.sh
+27
-21
src/tools/pkg/deb/pwrsev/control
src/tools/pkg/deb/pwrsev/control
+3
-3
src/tools/pkg/deb/pwrsev/pwrp_profile
src/tools/pkg/deb/pwrsev/pwrp_profile
+6
-5
src/tools/pkg/deb/pwrsev/pwrsev
src/tools/pkg/deb/pwrsev/pwrsev
+35
-18
src/tools/pkg/deb/pwrsev/pwrsev.1
src/tools/pkg/deb/pwrsev/pwrsev.1
+12
-2
src/tools/pkg/deb/pwrsev/sev_ini.1
src/tools/pkg/deb/pwrsev/sev_ini.1
+1
-1
No files found.
src/tools/pkg/deb/pwr/control
View file @
45bb132b
Package: pwr4
4
Package: pwr4
6
Version: 4.
4.2
-1
Version: 4.
6.0
-1
Section: base
Section: base
Priority: optional
Priority: optional
Architecture: i386
Architecture: i386
Depends: libc6 (>= 2.
3.6), libgtk2.0-0 (>= 2.8.16-1), libasound2 (>= 1.0.11), libdb4.3 (>=4.3.29
)
Depends: libc6 (>= 2.
7-13), libgtk2.0-0 (>= 2.12.11-3), libasound2 (>= 1.0.16-2), libdb4.6 (>=4.6.21-11), libdb4.3++c2 (>= 4.6.21-11), libmysqlclient15off (>= 5.0.51a-15), g++ (>= 4:4.3.2-2
)
Replaces: pwrrt,pwr34,pwr39,pwr40,pwr41,pwr42,pwr43,pwr44
Replaces: pwrrt,pwr34,pwr39,pwr40,pwr41,pwr42,pwr43,pwr44
,pwr45
Maintainer: Proview <postmaster@proview.se>
Maintainer: Proview <postmaster@proview.se>
Description: Proview development and runtime environment package
Description: Proview development and runtime environment package
Proview development and runtime environment
Proview development and runtime environment
4.4.0-1 Base release
4.6.0-1 Base release
4.4.0-2
- Proview restart improved. Works with profibus.
- Ge: New fonts, Times, NC Schoolbook and Courier.
4.4.1-1
- Proview profibus restart improved.
- Statusmonitor to view status of remote nodes implemented.
- Runtime monitor to start and stop runtime in development environment implemented.
4.4.2-1
- Subgraphs for ventilation and circuitdiagrams added.
- Baseobjects for threewayvalves, filters and dampers added.
src/tools/pkg/deb/pwrdemo/control
View file @
45bb132b
Package: pwrdemo45
Package: pwrdemo45
Version: 4.
5
.0-1
Version: 4.
6
.0-1
Section: base
Section: base
Priority: optional
Priority: optional
Architecture: i386
Architecture: i386
Depends: pwr4
5 (>= 4.5
.0-1)
Depends: pwr4
6 (>= 4.6
.0-1)
Maintainer: Proview <postmaster@proview.se>
Maintainer: Proview <postmaster@proview.se>
Description: Proview Demo Project package
Description: Proview Demo Project package
Proview Demo Project
Proview Demo Project
4.
5
.0-1 Base release
4.
6
.0-1 Base release
src/tools/pkg/deb/pwrrt/build.sh
View file @
45bb132b
...
@@ -81,6 +81,12 @@ fi
...
@@ -81,6 +81,12 @@ fi
# Convert to html
# Convert to html
co_convert
-t
-d
$pwr_doc
$pwr_eexe
/xtt_version_help.dat
co_convert
-t
-d
$pwr_doc
$pwr_eexe
/xtt_version_help.dat
{
echo
"<html><head>"
echo
"<meta http-equiv=
\"
Refresh
\"
content=
\"
5;../xtt_version_help_version.html
\"
>"
echo
"</head></html>"
}
>
$pwr_doc
/en_us/package_version.html
# Print rt version file
# Print rt version file
echo
"Version:
$version
"
>
$pwr_eexe
/rt_version.dat
echo
"Version:
$version
"
>
$pwr_eexe
/rt_version.dat
...
...
src/tools/pkg/deb/pwrrt/control
View file @
45bb132b
Package: pwrrt
Package: pwrrt
Version: 4.
4.4-5
Version: 4.
6.0-1
Section: base
Section: base
Priority: optional
Priority: optional
Architecture: i386
Architecture: i386
Depends: libc6 (>= 2.
3.6), libgtk2.0-0 (>= 2.8.16-1), libasound2 (>= 1.0.11), libdb4.3 (>=4.3.29
)
Depends: libc6 (>= 2.
7-13), libgtk2.0-0 (>= 2.12.11-3), libasound2 (>= 1.0.16-2), libdb4.6 (>=4.6.21-11
)
Replaces: pwr34,pwr39,pwr40,pwr41,pwr42,pwr43,pwr44
Replaces: pwr34,pwr39,pwr40,pwr41,pwr42,pwr43,pwr44
,pwr45
Maintainer: Proview <postmaster@proview.se>
Maintainer: Proview <postmaster@proview.se>
Description:
Description:
Proview runtime environment
Proview runtime environment
4.4.0-1 Base release
4.6.0-1 Base release
4.4.0-2
- Proview restart improved. Works with profibus.
- Ge: New fonts, Times, NC Schoolbook and Courier.
4.4.1-1
- Proview profibus restart improved.
- Statusmonitor to view status of remote nodes implemented.
- Runtime monitor to start and stop runtime in development environment implemented.
- Env variables allowed in filenames for remotelogg and nmpsbackup.
4.4.1-2
- Problems with national characters in opc_server fixed.
- Problems with memory leakage in opc_server fixed.
4.4.2-1
- Subgraphs for ventilation and circuit diagrams added.
- Baseobjects for threewayvalves, filters and dampers added.
4.4.2-2
- Ge: Gray backgroundcolor could be undefined.
4.4.2-3
- remote_mq present.
4.4.2-4
- XY_Curve class and Ge dynamic added.
4.4.3-1
- Changed qcom synchronization mechanism.
4.4.4-1
- Function to suppress alarms in basecomponents added.
- Classes IpDistribute, IpCollect, Demux, IDemux, GetDpPtr, StoDpPtr,
Eurotherm_TC3001, Eurotherm_TC3001Aggr and more added.
4.4.4-2
- Bugfix in gtk operatorwindow, long alarmtext could cause segfault
4.4.4-3
- Bugfix in trend, disabled trend object was handled.
- Bugfix in object graph for CompModePID and CompPID.
4.4.4-4
- Bugfix in Eurotherm 3001 profibus slave and module.
- Doublebuffering in graphs with window objects could be lost.
4.4.4-5
- Fixed several bugs in rs_remote_tcpip when acting as a server.
- Bugfix in rt_neth_acp. Subscriptions were not refreshed after a remote node restarted.
src/tools/pkg/deb/pwrrt/pwr
View file @
45bb132b
...
@@ -27,14 +27,15 @@ create_wrapper()
...
@@ -27,14 +27,15 @@ create_wrapper()
create_killer
()
create_killer
()
{
{
if
[
!
-e
$killer
]
;
then
echo
"#!/bin/bash"
>
$killer
echo
"#!/bin/bash"
>
$killer
echo
"source /etc/pwrp_profile"
>>
$killer
echo
"source /etc/pwrp_profile"
>>
$killer
echo
"umask 002"
>>
$killer
echo
"umask 002"
>>
$killer
echo
"kill -9
`
ps ax |
grep
"rt_"
|
awk
'{ print $1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"rt_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"kill -9
`
ps ax |
grep
"rs_"
|
awk
'{ print $1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"rs_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"kill -9
`
ps ax |
grep
"ra_"
|
awk
'{ print $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
-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
...
@@ -46,7 +47,6 @@ create_killer()
...
@@ -46,7 +47,6 @@ create_killer()
echo
"
$killer
not writable, check permissions"
echo
"
$killer
not writable, check permissions"
exit
exit
fi
fi
fi
}
}
...
@@ -99,36 +99,52 @@ pwr_kill()
...
@@ -99,36 +99,52 @@ pwr_kill()
case
"
$1
"
case
"
$1
"
in
in
start
)
start
)
echo
"Start
ar PWR
."
echo
"Start
Proview Runtime Environment
."
pwr_start
pwr_start
echo
"
Klar
."
echo
"
Done
."
;;
;;
stop
)
stop
)
echo
"Stop
par PWR..
."
echo
"Stop
Proveiw Runtime Environment
."
pwr_stop
pwr_stop
echo
"
Klar
"
echo
"
Done.
"
;;
;;
restart
)
restart
)
echo
"
Startar om PWR
."
echo
"
Restart Proview Runtime Environment
."
echo
"
Stoppar det frst
."
echo
"
Closing down..
."
pwr_stop
pwr_stop
sleep
1
sleep
1
echo
"Start
ar igen
."
echo
"Start
ing..
."
pwr_start
pwr_start
echo
"
Klar
."
echo
"
Done
."
;;
;;
reload
)
reload
)
echo
"
PWR varmomstart
"
echo
"
Reload Proview Runtime Environment
"
pwr_reload
pwr_reload
echo
"
Klar
."
echo
"
Done
."
;;
;;
kill
)
kill
)
echo
"Tar bort delat minne och kvarblivna applikationer frn PWR"
echo
"Remove all processes and resources for Proview Storage Environment"
pwr_kill
echo
"Done."
;;
reset
)
echo
"Remove all processes and resources for Proview Storage Environment"
pwr_kill
pwr_kill
echo
"
Klar
."
echo
"
Done
."
;;
;;
*
)
*
)
echo
"Usage:{start|stop|restart|reload|kill}"
>
&2
echo
" pwrsev 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
exit
1
;;
;;
esac
esac
...
...
src/tools/pkg/deb/pwrrt/pwr.1
View file @
45bb132b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
pwr - start and stop Proview runtime environment
pwr - start and stop Proview runtime environment
.SH SYNOPSIS
.SH SYNOPSIS
.B pwr
.B pwr
[start][stop][restart]
[start][stop][restart]
[reload][reset]
.SH DESCRIPTION
.SH DESCRIPTION
Start and stop command for Proview runtime environment.
Start and stop command for Proview runtime environment.
...
@@ -23,6 +23,16 @@ Stop Proview runtime environment.
...
@@ -23,6 +23,16 @@ Stop Proview runtime environment.
.IP
.IP
First stop and then start the Proview runtime environment.
First stop and then start the Proview runtime environment.
.HP
\fBreload\fR
.IP
Soft restart of Proview runtime environment.
.HP
\fBreset\fR
.IP
Remove all processes and resources.
.SH FILES
.SH FILES
/etc/pwrp_profile
/etc/pwrp_profile
...
...
src/tools/pkg/deb/pwrsev/build.sh
View file @
45bb132b
...
@@ -81,6 +81,12 @@ fi
...
@@ -81,6 +81,12 @@ fi
# Convert to html
# Convert to html
co_convert
-t
-d
$pwr_doc
$pwr_eexe
/sev_xtt_version_help.dat
co_convert
-t
-d
$pwr_doc
$pwr_eexe
/sev_xtt_version_help.dat
{
echo
"<html><head>"
echo
"<meta http-equiv=
\"
Refresh
\"
content=
\"
5;../sev_xtt_version_help_version.html
\"
>"
echo
"</head></html>"
}
>
$pwr_doc
/en_us/package_version.html
if
[
"
$1
"
==
"-v"
]
;
then
if
[
"
$1
"
==
"-v"
]
;
then
exit
exit
fi
fi
...
@@ -129,41 +135,41 @@ cp $pkgsrc/sev_xtt.1 $pkgroot/usr/share/man/man1/sev_xtt.1
...
@@ -129,41 +135,41 @@ cp $pkgsrc/sev_xtt.1 $pkgroot/usr/share/man/man1/sev_xtt.1
gzip
-fq
--best
$pkgroot
/usr/share/man/man1/sev_xtt.1
gzip
-fq
--best
$pkgroot
/usr/share/man/man1/sev_xtt.1
# Copy proview
# Copy proview
mkdir
$pkgroot
/usr/pwr
rt
mkdir
$pkgroot
/usr/pwr
sev
currentdir
=
"
`
eval pwd
`
"
currentdir
=
"
`
eval pwd
`
"
tarfile
=
$pwre_broot
/
$pwre_target
/bld/pkg/pwrtmp.tar
tarfile
=
$pwre_broot
/
$pwre_target
/bld/pkg/pwrtmp.tar
cd
$pwre_broot
/
$pwre_target
/exp
cd
$pwre_broot
/
$pwre_target
/exp
echo
"-- Copy release to package tree"
echo
"-- Copy release to package tree"
tar
-cf
$tarfile
exe/rt_qmon exe/rt_prio exe/sev_ini exe/sev_xtt exe/sev_xtt_gtk exe/sev_server exe/
*
.gif exe/
*
.png exe/sev_xtt_version_help.dat exe/pwr_pkg.sh exe/en_us/
*
.txt
tar
-cf
$tarfile
exe/rt_qmon exe/rt_prio exe/sev_ini exe/sev_xtt exe/sev_xtt_gtk exe/sev_server exe/
*
.gif exe/
*
.png exe/sev_xtt_version_help.dat exe/pwr_pkg.sh exe/en_us/
*
.txt
doc/
*
cd
$pkgroot
/usr/pwr
rt
cd
$pkgroot
/usr/pwr
sev
mkdir
cnf
mkdir
cnf
tar
-xf
$tarfile
tar
-xf
$tarfile
rm
$tarfile
rm
$tarfile
#rm -r $pkgroot/usr/pwr
rt
/lib/*.a
#rm -r $pkgroot/usr/pwr
sev
/lib/*.a
#rm -r $pkgroot/usr/pwr
rt
/exe/wb*
#rm -r $pkgroot/usr/pwr
sev
/exe/wb*
cp
$pwr_eexe
/wb_distr_keepboot.sh
$pkgroot
/usr/pwr
rt
/exe
cp
$pwr_eexe
/wb_distr_keepboot.sh
$pkgroot
/usr/pwr
sev
/exe
cd
$currentdir
cd
$currentdir
# Copy configuration files to cnf
# Copy configuration files to cnf
cp
$pkgsrc
/proview.cnf
$pkgroot
/usr/pwr
rt
/cnf
cp
$pkgsrc
/proview.cnf
$pkgroot
/usr/pwr
sev
/cnf
# Copy op to cnf
# Copy op to cnf
mkdir
$pkgroot
/usr/pwr
rt
/cnf/op
mkdir
$pkgroot
/usr/pwr
sev
/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.bashrc
$pkgroot
/usr/pwr
rt
/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.bashrc
$pkgroot
/usr/pwr
sev
/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.bash_profile
$pkgroot
/usr/pwr
rt
/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.bash_profile
$pkgroot
/usr/pwr
sev
/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.mwmrc
$pkgroot
/usr/pwr
rt
/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.mwmrc
$pkgroot
/usr/pwr
sev
/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.rtt_start
$pkgroot
/usr/pwr
rt
/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.rtt_start
$pkgroot
/usr/pwr
sev
/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.xtt_start
$pkgroot
/usr/pwr
rt
/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.xtt_start
$pkgroot
/usr/pwr
sev
/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.xsession
$pkgroot
/usr/pwr
rt
/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.xsession
$pkgroot
/usr/pwr
sev
/cnf/op
# Copy user to cnf
# Copy user to cnf
mkdir
$pkgroot
/usr/pwr
rt
/cnf/user
mkdir
$pkgroot
/usr/pwr
sev
/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.bashrc
$pkgroot
/usr/pwr
rt
/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.bashrc
$pkgroot
/usr/pwr
sev
/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.bash_profile
$pkgroot
/usr/pwr
rt
/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.bash_profile
$pkgroot
/usr/pwr
sev
/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.mwmrc
$pkgroot
/usr/pwr
rt
/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.mwmrc
$pkgroot
/usr/pwr
sev
/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.rtt_start
$pkgroot
/usr/pwr
rt
/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.rtt_start
$pkgroot
/usr/pwr
sev
/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.xtt_start
$pkgroot
/usr/pwr
rt
/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.xtt_start
$pkgroot
/usr/pwr
sev
/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.xsession
$pkgroot
/usr/pwr
rt
/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.xsession
$pkgroot
/usr/pwr
sev
/cnf/user
# Create package
# Create package
echo
"-- Building package"
echo
"-- Building package"
...
...
src/tools/pkg/deb/pwrsev/control
View file @
45bb132b
Package: pwrsev
Package: pwrsev
Version: 4.
5
.0-1
Version: 4.
6
.0-1
Section: base
Section: base
Priority: optional
Priority: optional
Architecture: i386
Architecture: i386
Depends: libc6 (>= 2.
3.6), libgtk2.0-0 (>= 2.8.16-1), libasound2 (>= 1.0.11), libdb4.3 (>=4.3.29
)
Depends: libc6 (>= 2.
7-13), libgtk2.0-0 (>= 2.12.11-3), libasound2 (>= 1.0.16-2), libdb4.6 (>=4.6.21-11
)
Replaces: pwr34,pwr39,pwr40,pwr41,pwr42,pwr43,pwr44,pwr45
Replaces: pwr34,pwr39,pwr40,pwr41,pwr42,pwr43,pwr44,pwr45
Maintainer: Proview <postmaster@proview.se>
Maintainer: Proview <postmaster@proview.se>
Description:
Description:
Proview storage environment
Proview storage environment
4.
5
.0-1 Beta release
4.
6
.0-1 Beta release
src/tools/pkg/deb/pwrsev/pwrp_profile
View file @
45bb132b
...
@@ -9,7 +9,7 @@ fi
...
@@ -9,7 +9,7 @@ fi
export PWR_BUS_ID=$bus_id
export PWR_BUS_ID=$bus_id
export pwrb_root=/usr/pwr
rt
export pwrb_root=/usr/pwr
sev
export pwrp_root=/pwrp
export pwrp_root=/pwrp
export pwr_exe=$pwrb_root/exe
export pwr_exe=$pwrb_root/exe
...
@@ -39,10 +39,11 @@ PATH=$PATH:$pwr_exe:$pwrp_exe:$jdk_home
...
@@ -39,10 +39,11 @@ PATH=$PATH:$pwr_exe:$pwrp_exe:$jdk_home
export DISPLAY=$REMOTEHOST:0.0
export DISPLAY=$REMOTEHOST:0.0
#symbols to define start/stop commands for PWR
#symbols to define start/stop commands for PWR
alias pwr_stop='/etc/init.d/pwr stop'
alias pwr_stop='/etc/init.d/pwrsvestop'
alias pwr_stop.sh="/etc/init.d/pwr stop"
alias pwr_stop.sh="/etc/init.d/pwrsev stop"
alias pwr_start="/etc/init.d/pwr start"
alias pwr_start="/etc/init.d/pwrsev start"
alias pwr="/etc/init.d/pwr"
alias pwrsev="/etc/init.d/pwrsev"
alias pwr="/etc/init.d/pwrsev"
alias boot="/usr/bin/sudo /sbin/reboot"
alias boot="/usr/bin/sudo /sbin/reboot"
if [ -e $pwrp_exe/profile ]; then
if [ -e $pwrp_exe/profile ]; then
...
...
src/tools/pkg/deb/pwrsev/pwrsev
View file @
45bb132b
...
@@ -27,13 +27,12 @@ create_wrapper()
...
@@ -27,13 +27,12 @@ create_wrapper()
create_killer
()
create_killer
()
{
{
if
[
!
-e
$killer
]
;
then
echo
"#!/bin/bash"
>
$killer
echo
"#!/bin/bash"
>
$killer
echo
"source /etc/pwrp_profile"
>>
$killer
echo
"source /etc/pwrp_profile"
>>
$killer
echo
"umask 002"
>>
$killer
echo
"umask 002"
>>
$killer
echo
"
kill -9
`
ps ax |
grep
"rt_"
|
awk
'{ print
$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"rt_"
|
awk
'{ print "kill -9 "
$1}'
`
"
>>
$killer
echo
"
kill -9
`
ps ax |
grep
"sev_"
|
awk
'{ print
$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"sev_"
|
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
...
@@ -45,7 +44,6 @@ create_killer()
...
@@ -45,7 +44,6 @@ create_killer()
echo
"
$killer
not writable, check permissions"
echo
"
$killer
not writable, check permissions"
exit
exit
fi
fi
fi
}
}
...
@@ -98,36 +96,55 @@ pwr_kill()
...
@@ -98,36 +96,55 @@ pwr_kill()
case
"
$1
"
case
"
$1
"
in
in
start
)
start
)
echo
"Start
ar PWR
."
echo
"Start
Proview Storage Environment
."
pwr_start
pwr_start
echo
"
Klar
."
echo
"
Done
."
;;
;;
stop
)
stop
)
echo
"Stop
par PWR..
."
echo
"Stop
Proveiw Storage Environment
."
pwr_stop
pwr_stop
echo
"
Klar
"
echo
"
Done.
"
;;
;;
restart
)
restart
)
echo
"
Startar om PWR
."
echo
"
Restart Proview Storage Environment
."
echo
"
Stoppar det frst
."
echo
"
Closing down..
."
pwr_stop
pwr_stop
sleep
1
sleep
1
echo
"Start
ar igen
."
echo
"Start
ing..
."
pwr_start
pwr_start
echo
"
Klar
."
echo
"
Done
."
;;
;;
reload
)
reload
)
echo
"PWR varmomstart "
echo
"Restart Proview Storage Environment."
pwr_reload
echo
"Closing down..."
echo
"Klar."
pwr_stop
sleep
1
echo
"Starting..."
pwr_start
echo
"Done."
;;
;;
kill
)
kill
)
echo
"
Tar bort delat minne och kvarblivna applikationer frn PWR
"
echo
"
Remove all processes and resources for Proview Storage Environment
"
pwr_kill
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
" pwrsev Start and stop Proview Storage Environment"
>
&2
echo
""
>
&2
echo
" Usage:"
>
&2
echo
" pwrsev start|stop|restart|reset"
>
&2
echo
""
>
&2
echo
" start Start Storage environment"
>
&2
echo
" stop Stop Storage environment"
>
&2
echo
" restart First stop and then start Storage environment"
>
&2
echo
" reset Remove all processes and resources"
>
&2
echo
""
>
&2
exit
1
exit
1
;;
;;
esac
esac
...
...
src/tools/pkg/deb/pwrsev/pwrsev.1
View file @
45bb132b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
pwrsev - start and stop Proview Storage Environment
pwrsev - start and stop Proview Storage Environment
.SH SYNOPSIS
.SH SYNOPSIS
.B pwrsev
.B pwrsev
[start][stop]
[start][stop]
[restart][reset]
.SH DESCRIPTION
.SH DESCRIPTION
Start and stop command for Proview Storage Environment.
Start and stop command for Proview Storage Environment.
...
@@ -18,6 +18,16 @@ Start Proview storage environment.
...
@@ -18,6 +18,16 @@ Start Proview storage environment.
.IP
.IP
Stop Proview storage environment.
Stop Proview storage environment.
.HP
\fBrestart\fR
.IP
Stop and start the Proview storage environment.
.HP
\fBreset\fR
.IP
Remove all processes and resources.
.SH FILES
.SH FILES
/etc/pwrp_profile
/etc/pwrp_profile
...
@@ -32,5 +42,5 @@ QCOM bus identity.
...
@@ -32,5 +42,5 @@ QCOM bus identity.
Written by cs.
Written by cs.
.SH "SEE ALSO"
.SH "SEE ALSO"
.BR
rt
_ini(1)
.BR
sev
_ini(1)
src/tools/pkg/deb/pwrsev/sev_ini.1
View file @
45bb132b
.TH
rt
_ini "1" "April 2005" "Proview" "Proview Manual"
.TH
sev
_ini "1" "April 2005" "Proview" "Proview Manual"
.SH NAME
.SH NAME
sev_ini - start or stop the Proview storage environment
sev_ini - start or stop the Proview storage environment
.SH SYNOPSIS
.SH SYNOPSIS
...
...
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