Saturday - Last Commit

This commit is contained in:
Aliberk Sandıkçı 2023-07-29 14:59:14 +03:00
parent 65f620907a
commit 7c9d75c5b0
Signed by: asandikci
GPG key ID: 25C67A03B5666BC1
4 changed files with 2 additions and 9 deletions

View file

@ -28,7 +28,7 @@ Install latest version of Go !
Build / Install with:
```bash
wget -qO- https://git.aliberksandikci.com.tr/Liderahenk/go-daemon/raw/branch/main/go-daemon/install.sh | sh
wget -qO- https://git.aliberksandikci.com.tr/Liderahenk/go-daemon/raw/branch/main/go-daemon/install.sh | bash
```
@ -42,7 +42,7 @@ sudo apt install git golang-go gcc
Build / Install with:
```bash
wget -qO- https://git.aliberksandikci.com.tr/Liderahenk/go-daemon/raw/branch/main/c-daemon/tmp-install.sh | sh
wget -qO- https://git.aliberksandikci.com.tr/Liderahenk/go-daemon/raw/branch/main/c-daemon/tmp-install.sh | bash
```

View file

@ -15,7 +15,6 @@ func main() {
LogFilePerm: 0640,
WorkDir: "./",
Umask: 027,
// Args: []string{"[go-daemon godaemon1]"},
}
d, err := cntxt.Reborn()

View file

@ -12,8 +12,6 @@ PIDFile=/run/godaemon1.pid
PrivateTmp=false
Restart=always
WorkDir=/etc/godaemon/
[Install]
WantedBy=multi-user.target
Alias=godaemon1.service

View file

@ -3,13 +3,10 @@
### godaemon1
# Pre-Cleaning
sudo rm /usr/bin/godaemon1
sudo rm -rf /etc/godaemon1/
sudo killall godaemon1
sudo systemctl disable godaemon1
sudo systemctl stop godaemon1
sudo systemctl daemon-reload
sudo rm /godaemon1.log /godaemon1.pid
sudo rm /etc/godaemon1/godaemon1.log /etc/godaemon1/godaemon1.pid
# Building
temp_dir="$(mktemp -d)"
@ -21,7 +18,6 @@ go build -o ./bin/
# Installing
sudo mv ./bin/godaemon1 /usr/bin/godaemon1
sudo mkdir -p /etc/godaemon1/
if [[ $(ps -jp 1 | awk 'FNR == 2 {print $6}') == "systemd" ]]
then
sudo mv ./godaemon1.service /etc/systemd/system/