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
4744ddf2
Commit
4744ddf2
authored
Mar 04, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
939bce0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
16 deletions
+67
-16
src/tools/pkg/deb/pwrrt/gdhserver
src/tools/pkg/deb/pwrrt/gdhserver
+67
-0
src/tools/pkg/deb/pwrrt/pwr
src/tools/pkg/deb/pwrrt/pwr
+0
-16
No files found.
src/tools/pkg/deb/pwrrt/gdhserver
0 → 100644
View file @
4744ddf2
#!/bin/bash
#
# Startscript fr PWR av Ulf Ljungdahl
#
PATH
=
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/jdk1.3/bin/java
.
/etc/pwrp_profile
gdh_start
()
{
export
LD_LIBRARY_PATH
=
$pwr_exe
export
CLASSPATH
=
$pwr_lib
/pwr_rt.jar:
$pwr_lib
/pwr_jop.jar
sleep
5
sudo
-u
pwrp
$pwr_exe
/rt_webmon.sh &
sleep
2
sudo
-u
pwrp
$pwr_exe
/rt_webmonmh.sh &
#su pwrp <java jpwr.rt.GdhServer &
#sudo -u pwrp java jpwr.rt.GdhServer &
}
gdh_stop
()
{
kill
-9
`
ps ax |
grep
"java"
|
awk
'{ print $1}'
`
}
case
"
$1
"
in
start
)
echo
"Startar GDH server..."
#if [ 'test -x ps aux | grep plc | grep -v grep' ]
# then
# echo "PWR kr, stoppar det frst.."
# pwr_stop
# fi
gdh_start
echo
"Klar."
;;
stop
)
echo
"Stoppar GDH server..."
gdh_stop
echo
"Klar"
;;
restart
)
echo
"Startar om GDH server."
echo
"Stoppar det frst."
gdh_stop
sleep
1
echo
"Startar igen."
gdh_start
echo
"Klar."
;;
*
)
echo
"Usage:{start|stop|restart}"
>
&2
#echo "Ingen parameter angiven, startar PWR"
#$0 start
exit
1
;;
esac
exit
0
src/tools/pkg/deb/pwrrt/pwr
View file @
4744ddf2
...
...
@@ -3,30 +3,14 @@
# Startscript fr PWR av Ulf Ljungdahl
#
#test -x /sbin/ipchains || exit 0
#test -x /sbin/ipchains-restore || exit 0
#test -x /sbin/ipchains-save || exit 0
PATH
=
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
.
/etc/pwrp_profile
save
()
{
echo
-n
"Saving IP chains: "
TEMPFILE
=
"
`
tempfile
`
"
echo
"
${
SAVEFILEHEADER
}
"
>
"
${
TEMPFILE
}
"
&&
/sbin/ipchains-save
>>
"
${
TEMPFILE
}
"
2>/dev/null
cat
"
${
TEMPFILE
}
"
>
/etc/ipchains.save
rm
"
${
TEMPFILE
}
"
}
pwr_start
()
{
$pwr_exe
/rt_ini &
sleep
5
/usr/sbin/setrtprio
`
ps ax |
grep
"plc"
|
grep
-v
"grep"
|
awk
'{ print $1}'
`
}
pwr_stop
()
...
...
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