Commit Graph

41 Commits (d0affcb3761888ae8707f4174028d33ac313580d)

Author SHA1 Message Date
Christian König 9e47b61c8f
Apply suggestions from code review
1 year ago
Christian König f713b14ba0
Cleanup if startup failed
1 year ago
MichaIng 81927334f2
Add native systemd service
2 years ago
Christian König 3d01e4d0cf No detour - use pihole-FTL.conf to get the API port number
2 years ago
Dan Schaper 989c52ef24
Exit with return code if ftl does not start
2 years ago
Christian König 3327df8d9c
Ensure user defined FTL_PID_FILE and FTL_PORT_FILE dirs are created on startup
2 years ago
Christian König 7b77d991df
Move FTL port and PID functions to utils.sh
2 years ago
DL6ER 98c238064e
Change FTL's default log file path from /var/log/pihole/pihole-FTL.log to /var/log/pihole/FTL.log
2 years ago
Christian König 954a0c2a14
Remove read permission for others on senible log files
2 years ago
yubiuser 3fa8f76d99
Combine mkdir in service file
2 years ago
Christian König ce8731b746
no-dereference
2 years ago
Christian König 08faf21b2e
Set file owner and permission to symlinks
2 years ago
Christian König 2dd08f070e
Fix copy&paste error
2 years ago
Christian König 0961103933
Add backward compatibility to FTL service by creating symlinks
2 years ago
Adam Warner 36dd533ef3 use directory /var/log/pihole/ for log storage
2 years ago
yubiuser 0decc1252b
Respect user configurable path for pid and port file in pihole-FTL.service (#4680)
2 years ago
Dan Schaper b714c4598a
Found it.
2 years ago
Dan Schaper 0f192998eb
Create empty files.
2 years ago
Dan Schaper 8a5c7dec71
Ensure existing files are proper owner and mode.
2 years ago
yubiuser 3c41ec08a3
Set file permission for querie database in pihole-FTL.service (#4328)
3 years ago
Adam Warner 62f29ba3fa
Merge branch 'release/v5.4' into development
3 years ago
DL6ER a1ee7d92a9
Add possibly missing capabilities
3 years ago
Adam Warner c88c943cda
Merge branch 'release/v5.4' into dev-release5.4
3 years ago
Adam Warner 913dcead7f
move chmod/chown of macvendor.db to pihole-FTL.service
3 years ago
MichaIng 57c40cbd09 Update pihole-FTL.service
3 years ago
DL6ER 17aabf26f7
Also use pkill/pgrep in the FTL service script
4 years ago
DL6ER de8976da7a
Add CAP_SYS_NICE to FTL's capabilities so it can control its own niceness.
4 years ago
MichaIng 5c17e41cf1 Start pihole-FTL after network
4 years ago
Adam Warner ec09b5843c
Merge branch 'development' into fix/do_not_force_local_resolver
4 years ago
DL6ER 620e1e9c73
Do not force nameserver 127.0.0.1 through resolvconf in pihole-FTL.service
4 years ago
DL6ER 8a119d72e2
Ensure database permissions are set up correctly by the service script.
4 years ago
chrunchyjesus 476975540a
make some shebangs comply to posix standard
5 years ago
DL6ER ae98fde321
Try to obtain PID from PIDFILE. If this fails (file does not exist or is empty), fall back to using pidof + awk
5 years ago
DL6ER f6213d4f4d
Use last PID in case pidof returns multiple PIDs for pihole-FTL
5 years ago
DL6ER 5ca1bfc11c
Delete /dev/shm/FTL-* files on (re)start of pihole-FTL
5 years ago
DL6ER d0125d5aad
Suppress warning if Pi-hole is not used as DHCP server (/etc/pihole/dhcp.leases is not present in this case)
6 years ago
DL6ER b9d47d0dd2
Merge pull request #2378 from pi-hole/fix/pihole-FTL-no-caps
6 years ago
DL6ER ec2426b24d
Add clarifying comments
6 years ago
DL6ER 5cd3b11391
Start pihole-FTL as root if capabilities are not supported by the system
6 years ago
DL6ER d30b565d98
Touch dhcp.leases to ensure it exists. There are some systems out there where the installer didn't finish on the first run and some users don't have this file being created. Although /etc/pihole should be owned by pihole:pihole, pihole-FTL sometimes fails to open this file and - if this is the case and DHCP is enabled - refuses to start altogether.
6 years ago
Dan Schaper b79ff05e29
Move template files to own subdir. Include pihole-FTL.conf in templates.
6 years ago