Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: README.md and integration script updated #19

Merged
merged 1 commit into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ path_to_log.

5. <b>Остановите работу демона</b>
```
systemctl kill -s 2 BackupPJ.service
systemctl stop BackupPJ.service
```
Таким образом демон остановится по сигналу SIGINT без утечек памяти.

Expand Down Expand Up @@ -96,7 +96,7 @@ path_to_log.

5. <b>Stop the daemon</b>
```
systemctl kill -s 2 BackupPJ.service
systemctl stop 2 BackupPJ.service
```
This way the daemon will stop on SIGINT signal without memory leaks.

Expand Down
Binary file removed bin/backupd
Binary file not shown.
6 changes: 3 additions & 3 deletions config.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
path_to_dir: /home/k1rch/Music
path_to_backup: /home/k1rch/2023-backupd-backups
path_to_log: /home/k1rch/backup_service.log
path_to_dir: /home/k1r4/Music
path_to_backup: /home/k1r4/2023-backupd-backups
path_to_log: /home/k1r4/2023-backupd-backups/backup_service.log
3 changes: 3 additions & 0 deletions integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ echo "WorkingDirectory=$PWD/bin" >> BackupPJ.service
# all logs written to stderr will be written to this file: backupd.errors.log
# check ENABLE_DEBUG_INFO for this purpose!
echo "ExecStart=/bin/bash -ce \"./backupd 2> ../backupd.errors.log\"" >> BackupPJ.service
echo "ExecReload=/bin/bash -ce \"kill -s 2 `cat /run/backupd_pj.pid`\"\n" >> BackupPJ.service

echo "[Install]" >> BackupPJ.service
echo "WantedBy=multi-user.target" >> BackupPJ.service


sudo mv BackupPJ.service -t /etc/systemd/system/
Loading