We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbf2c27 commit 5aefb3eCopy full SHA for 5aefb3e
operations/cookbook.service
@@ -6,11 +6,13 @@ After=network.target
6
Type=simple
7
User=quinn
8
WorkingDirectory=/home/quinn/cookbook/book
9
-ExecStart=/home/quinn/.local/bin/uv run jupyter book start --port 3000 --headless
+ExecStart=/bin/bash -c 'fuser -k 3000/tcp 2>/dev/null || true; /home/quinn/.local/bin/uv run jupyter book start --port 3000 --headless'
10
Restart=always
11
RestartSec=10
12
StandardOutput=journal
13
StandardError=journal
14
+KillMode=mixed
15
+KillSignal=SIGTERM
16
17
[Install]
18
WantedBy=multi-user.target
0 commit comments