diff --git a/deploy/insin/postinst b/deploy/insin/postinst index de1e2ae..6d2a475 100755 --- a/deploy/insin/postinst +++ b/deploy/insin/postinst @@ -3,7 +3,6 @@ set -euo pipefail INSTALL_DIR="$(pwd)" chmod +x "$INSTALL_DIR/EpsonPrintService" mkdir -p /var/lib/epson-print-service -install -m 644 epson.service /etc/systemd/system/epson.service -install -m 644 print_server.service /etc/systemd/system/print_server.service +install -m 644 epson.service /etc/systemd/system/epson.service systemctl daemon-reload -systemctl enable --now epson.service print_server.service +systemctl enable --now epson.service diff --git a/deploy/insin/prem b/deploy/insin/prem index d13c9a3..0618224 100755 --- a/deploy/insin/prem +++ b/deploy/insin/prem @@ -1,5 +1,5 @@ #!/usr/bin/env bash set -euo pipefail -systemctl disable --now epson.service print_server.service 2>/dev/null || true -rm -f /etc/systemd/system/epson.service /etc/systemd/system/print_server.service +systemctl disable --now epson.service 2>/dev/null || true +rm -f /etc/systemd/system/epson.service systemctl daemon-reload 2>/dev/null || true diff --git a/deploy/insin/print_server.service b/deploy/insin/print_server.service deleted file mode 100644 index 0fa6587..0000000 --- a/deploy/insin/print_server.service +++ /dev/null @@ -1,14 +0,0 @@ -[Unit] -Description=Epson Print Server (companion) -After=network-online.target -Wants=network-online.target - -[Service] -Type=simple -WorkingDirectory=/opt/epson-print-service -ExecStart=/opt/epson-print-service/EpsonPrintService -Restart=on-failure -RestartSec=5s - -[Install] -WantedBy=multi-user.target