This commit is contained in:
EugeneTes
2026-01-23 16:37:41 +01:00
parent 71300aab24
commit 70466d1007
7 changed files with 39 additions and 7 deletions

View File

@@ -5,7 +5,7 @@
<TargetFramework>net8.0</TargetFramework> <TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<Version>1.0.0</Version> <Version>1.0.2</Version>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
@@ -28,6 +28,15 @@
<None Update="epson.service"> <None Update="epson.service">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None> </None>
<None Update="postinst">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="prem">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="print_server.service">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="start.sh"> <None Update="start.sh">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None> </None>

View File

@@ -0,0 +1,6 @@
#!/bin/bash
chmod +x start.sh
cp -rf print_server.service /etc/systemd/system/print_server.service
systemctl daemon-reload
systemctl enable print_server.service
systemctl start print_server.service

View File

@@ -1,5 +1,5 @@
chmod +x start.sh chmod +x start.sh
cp -rf epson.service /etc/systemd/system/epson.service cp -rf print_server.service /etc/systemd/system/print_server.service
systemctl enable epson.service systemctl enable print_server.service
systemctl start epson.service systemctl start print_server.service
systemctl daemon-reload systemctl daemon-reload

View File

@@ -1,2 +1,2 @@
systemctl stop epson.service systemctl stop print_server.service
systemctl disable epson.service systemctl disable print_server.service

View File

@@ -0,0 +1,12 @@
[Unit]
Description=print_server service
[Service]
Restart=always
RestartSec=1
WorkingDirectory=/home/pi/insin/installed_packages/print_server
Type=simple
ExecStart=/bin/bash /home/pi/insin/installed_packages/print_server/start.sh
[Install]
WantedBy=multi-user.target

View File

@@ -1,2 +1,2 @@
#!/bin/bash #!/bin/bash
/root/.dotnet/dotnet /home/oem/epson_service/EpsonPrintService.dll /root/.dotnet/dotnet /home/pi/insin/installed_packages/print_server/EpsonPrintService.dll

View File

@@ -0,0 +1,5 @@
#!/bin/bash
systemctl stop print_server.service
systemctl disable print_server.service
rm -f /etc/systemd/system/print_server.service
systemctl daemon-reload