Convert into daemon #17

Merged
pranav merged 10 commits from daemon into master 2021-09-10 16:59:02 +02:00
Owner

Implementation of issue #14

Implementation of issue #14
pranav added this to the Convert into daemon milestone 2021-09-07 07:57:44 +02:00
pranav added the
enhancement
label 2021-09-07 07:57:44 +02:00
pranav added 5 commits 2021-09-07 07:57:45 +02:00
a3e9b45050
more logging messages and code cleanup
Removed log messages from config.py
2d9aee4d3a
added --systemd and --verbose arguments
When run without --systemd, naxalnet will log to stderr.
Otherwise, it will log to systemd journal.

log.py is no longer needed.
6fff558405
many changes, see full commit message
- Renamed here_be_dragons() to main().
- Added daemon.py (doesn't do anything yet).
- Added GPL disclaimer to all python files and removed the shebang #!
  from all files.
- args is now defined outside any function in scripts.py
- Changed arguments of some functions in scripts.py
68b53ccad1
implemented daemon
naxalnet is now a daemon! When run from systemd, it checks for new
devices or removal of devices and reloads the wifi configuration.
Updated the systemd service and changed Type to notify. Unfortunately,
there is some problem with logging. The messages from naxalnet.iwd could
not be found in the systemd journal or while running without --systemd.
pranav added 1 commit 2021-09-07 15:18:44 +02:00
ca1e721c9e
fixed logging issue and another bug
There was a problem with indentation which made the line starting adhoc
not being run at all.
Updated CHANGELOG
Moved some things to other places
log.py is back! It isn't needed, but it doesn't do any harm anyway.
pranav added 1 commit 2021-09-08 08:28:15 +02:00
pranav added 1 commit 2021-09-08 12:25:07 +02:00
f9c969d233
updated README.md
Now that naxalnet is a daemon, there was some things which didn't make
sense anymore. So they were removed.
pranav added 1 commit 2021-09-10 08:16:30 +02:00
2a8930ce00
remove ipfs url from README.md
I don't use IPFS anymore. If anyone if willing to maintain a copy of
this repo on ipfs, send me an email.

Small change in CHANGELOG, and edited comments in systemd service.
And added a docstring to setup.py so the editor won't complain of
missing docstring anymore.
pranav added a new dependency 2021-09-10 16:43:26 +02:00
Author
Owner

Work on this feature is finished but I'm delaying merging just to make sure I haven't screwed up anything this time.

Work on this feature is finished but I'm delaying merging just to make sure I haven't screwed up anything this time.
pranav added 1 commit 2021-09-10 16:54:04 +02:00
pranav changed title from WIP: Convert into daemon to Convert into daemon 2021-09-10 16:58:24 +02:00
Author
Owner

Never mind. I'm merging NOW

Never mind. I'm merging NOW
pranav merged commit 74a061507f into master 2021-09-10 16:59:02 +02:00
pranav deleted branch daemon 2021-09-10 16:59:29 +02:00
Sign in to join this conversation.
No reviewers
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Depends on
Reference: pranav/pybatmesh#17
No description provided.