created install and uninstall shell scripts - tested on ubuntu.
created dependencies text file to explain what is required. created CardReaderService.conf file for supervisor configuration.
This commit is contained in:
parent
9927ffc8bd
commit
7f410df70b
5
CardReaderService/CardReaderService.conf
Normal file
5
CardReaderService/CardReaderService.conf
Normal file
@ -0,0 +1,5 @@
|
||||
[program:CardReaderService]
|
||||
command=mono-service CardReaderService.exe --no-daemon
|
||||
directory=/home/osboxes/CardReaderService
|
||||
stdout_logfile=/home/osboxes/CardReaderService/out.log
|
||||
redirect_stderr=true
|
||||
7
CardReaderService/dependencies.txt
Normal file
7
CardReaderService/dependencies.txt
Normal file
@ -0,0 +1,7 @@
|
||||
install:
|
||||
- pcscd
|
||||
- supervisor
|
||||
- mono-complete
|
||||
|
||||
copy CardReaderService.conf to /home/osboxes/CardReaderService
|
||||
|
||||
15
CardReaderService/install.sh
Normal file
15
CardReaderService/install.sh
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
echo "Installing dependencies"
|
||||
apt-get install mono-complete pcscd supervisor -y
|
||||
echo "Installing service configuration file"
|
||||
cp CardReaderService.conf /etc/supervisor/conf.d/
|
||||
echo "Installing applicaton"
|
||||
mkdir /home/osboxes/CardReaderService
|
||||
cp CardReaderServiceHost/bin/Debug/*.* /home/osboxes/CardReaderService
|
||||
cd /home/osboxes/CardReaderService
|
||||
rm *.pdb
|
||||
rm *.vshost.exe
|
||||
rm *.vshost.exe.config
|
||||
rm *.vshost.exe.manifest
|
||||
echo "Starting application........."
|
||||
service supervisor restart
|
||||
7
CardReaderService/uninstall.sh
Normal file
7
CardReaderService/uninstall.sh
Normal file
@ -0,0 +1,7 @@
|
||||
echo "Stopping application...."
|
||||
service supervisor stop
|
||||
rm -f /etc/supervisor/conf.d/CardReaderService.conf
|
||||
echo "Removing Application.."
|
||||
rm -r -f /home/osboxes/CardReaderService
|
||||
echo "Removing application dependencies.."
|
||||
apt-get remove pcscd supervisor mono-complete -y
|
||||
Loading…
Reference in New Issue
Block a user