Compare commits

..
2 Commits
Author SHA1 Message Date
gandc 0f0b525c51 add systemd unit install target 2025-03-16 17:12:18 +03:00
gandc ae9b212dd6 add systemd unit 2025-03-16 17:11:45 +03:00
2 changed files with 21 additions and 0 deletions

No files matched your search

+8
View File
@@ -90,6 +90,14 @@ repo:
@echo "deb [trusted=yes] file:/usr/local/repos ./" | sudo tee /etc/apt/sources.list.d/myrpc.list
@sudo apt-get update
systemd_install:
@echo "Installing systemd unit"
@sudo cp systemd/myrpc-server.service /etc/systemd/system/
@sudo systemctl daemon-reload
# @sudo systemctl enable myrpc-server
# @sudo systemctl restart myrpc-server
@echo "Systemd unit successfully installed"
###############################################################################
# Очистка временных файлов
###############################################################################
+13
View File
@@ -0,0 +1,13 @@
[Unit]
Description=myRPC Server Service
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/myrpc-server
Restart=always
User=root
Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[Install]
WantedBy=multi-user.target