Date: Thu, 28 Mar 2024 17:49:42 +0100 (CET) Message-ID: <2142024399.593.1711644582977@nm-docs> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_592_1169314454.1711644582976" ------=_Part_592_1169314454.1711644582976 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
To add Teamwork Server to Windows services
If you encounter any issues with adding the= server as a Windows service, try starting the Teamwork Server as an admini= strator.
This feature is available only on Windows operating systems.
Windows 7 OS and Windows Vista OS Firewall do not allow remote connectio= ns. After adding Teamwork Server to Windows 7 or Windows Vista services, yo= u must add the Teamwork Server port number 1100 in Windows Firewall Excepti= ons list. At that point, all remote connections to Teamwork Server will be = allowed.
To remove Teamwork Server from the Windows services
This feature is available only on Windows operating systems.
To start Teamwork Server as a service on Linux
Copy the following script code and past= e it into the file:
#!/bin/b= ash # # chkconfig: - 91 60 # description: MagicDraw TeamWork Server ### BEGIN INIT INFO # Provides: teamwork # Required-Start: $local_fs $network $named $remote_fs $syslog # Required-Stop: $local_fs $network $named $remote_fs $syslog # Short-Description: MagicDraw TeamWork Server # Description: This script is used to start MagicDraw TeamWork Server ### END INIT INFO RETVAL=3D0 TEAMWORK_HOME=3D"/var/MagicDraw_Teamwork_Server/bin" prog=3D"teamwork_server_nogui" prog_stop=3D"stop_teamwork_server" desc=3D"MagicDraw Teamwork Server" args=3D"SERVICE" check() { if [ -f /var/lock/$prog ]; then if ps -p $(cat /var/lock/$prog 2>/dev/null) >/dev/null; then return 0 fi fi return 3 } status() { check if [ $? -eq 0 ]; then echo $"${desc} is running..." return 0 fi echo $"${desc} is stopped" return 3 } start() { check if [ $? -eq 0 ]; then echo $"${desc} is already started..." return 2 fi echo -n $"Starting $desc ($prog): " $TEAMWORK_HOME/$prog $args & RETVAL=3D$? SCRIPT_PID=3D$! COUNT=3D0 while [ "$COUNT" -le 15 ] && [ -z $JAVA_PID ] do JAVA_PID=3D$(pgrep -P $SCRIPT_PID java) let COUNT=3DCOUNT+1 sleep 1 done [ $RETVAL -eq 0 ] && echo $JAVA_PID >/var/lock/$prog echo } stop() { echo -n $"Shutting down $desc ($prog): " $TEAMWORK_HOME/$prog_stop RETVAL=3D$? [ $RETVAL -eq 0 ] && rm -f /var/lock/$prog return $RETVAL } case "$1" in start) start RETVAL=3D$? ;; stop) stop ;; restart) stop start RETVAL=3D$? ;; status) status teamwork RETVAL=3D$? ;; *) echo $"Usage: $0 {start|stop|restart|status}" exit 3 esac exit $RETVAL
In the command line, type the following= commands:
cd /etc/= rc3.d ln -s ../init.d/teamwork S99teamwork
You can also configure the service for runlevel using the following comm= and:
chkconfi= g --level 3 teamwork on
In the command line, type the following= command:
service = teamwork start