Rename: Hamlet -> Ham Lab (binary/module/service/config hamlab)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
436732dac0
commit
d76da4b37a
@@ -1,5 +1,5 @@
|
||||
[Unit]
|
||||
Description=Hamlet web console
|
||||
Description=Ham Lab web console
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
@@ -7,8 +7,8 @@ Type=simple
|
||||
User=core
|
||||
Group=core
|
||||
WorkingDirectory=/home/core
|
||||
Environment=HAMLET_CONFIG=/home/core/apps/hamlet/config.json
|
||||
ExecStart=/usr/local/bin/hamlet serve
|
||||
Environment=HAMLAB_CONFIG=/home/core/apps/hamlab/config.json
|
||||
ExecStart=/usr/local/bin/hamlab serve
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
KillMode=control-group
|
||||
+5
-5
@@ -2,10 +2,10 @@
|
||||
# Install the built binary and unit on this host, then (re)start the service.
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
sudo install -m 0755 bin/hamlet /usr/local/bin/hamlet
|
||||
sudo install -m 0644 deploy/hamlet.service /etc/systemd/system/hamlet.service
|
||||
sudo install -m 0755 bin/hamlab /usr/local/bin/hamlab
|
||||
sudo install -m 0644 deploy/hamlab.service /etc/systemd/system/hamlab.service
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable --now hamlet.service >/dev/null
|
||||
sudo systemctl restart hamlet.service
|
||||
sudo systemctl enable --now hamlab.service >/dev/null
|
||||
sudo systemctl restart hamlab.service
|
||||
sleep 1
|
||||
systemctl is-active hamlet.service && /usr/local/bin/hamlet version
|
||||
systemctl is-active hamlab.service && /usr/local/bin/hamlab version
|
||||
|
||||
Reference in New Issue
Block a user