install script works better now
This commit is contained in:
parent
fbe9021b04
commit
0afc6286e7
@ -4,7 +4,7 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/local/cputild
|
ExecStart=/usr/local/bin/cputild
|
||||||
ExecStop=kill -INT $MAIN_PID
|
ExecStop=kill -INT $MAIN_PID
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
|
|||||||
@ -7,3 +7,5 @@ trap "rm -rf '$TMP_DIR'" EXIT
|
|||||||
cmake -S "$SRC_DIR" -B "$TMP_DIR" -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
cmake -S "$SRC_DIR" -B "$TMP_DIR" -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
||||||
cmake --build "$TMP_DIR"
|
cmake --build "$TMP_DIR"
|
||||||
sudo cmake --install "$TMP_DIR" --prefix "/usr/local"
|
sudo cmake --install "$TMP_DIR" --prefix "/usr/local"
|
||||||
|
sudo cp "$SRC_DIR/cputild.service" "/etc/systemd/user/cputild.service"
|
||||||
|
systemctl --user daemon-reload
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user