Atlas - install_client.sh

Home / usr / net / PulseWatch Lines: 1 | Size: 828 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1#!/bin/sh 2set -eu 3 4INSTALL_DIR="/opt/nexus/usr/net/PulseWatch" 5SERVICE="/etc/systemd/system/pulsewatch-client.service" 6 7SERVER_URL="${1:-http://localhost:9000}" 8 9echo "[+] Installing PulseWatch client" 10echo " Server: ${SERVER_URL}" 11 12# permissions on code 13chown -R root:root "$INSTALL_DIR" 14chmod -R 755 "$INSTALL_DIR" 15 16# systemd service 17cat > "$SERVICE" <<EOF 18[Unit] 19Description=PulseWatch Client 20After=network-online.target 21Wants=network-online.target 22 23[Service] 24ExecStart=/usr/bin/python3 ${INSTALL_DIR}/client.py ${SERVER_URL} 25WorkingDirectory=${INSTALL_DIR} 26Restart=always 27RestartSec=5 28 29NoNewPrivileges=true 30PrivateTmp=true 31ProtectSystem=strict 32ProtectHome=true 33 34[Install] 35WantedBy=multi-user.target 36EOF 37 38systemctl daemon-reload 39systemctl enable --now pulsewatch-client 40 41echo "[+] PulseWatch client installed and running" 42
[FILE END]
(C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.