Commit Graph

19 Commits

Author SHA1 Message Date
Mattia Giambirtone 99fd4171ed NimD now checks if another instance is running before starting up 2022-03-12 17:22:40 +01:00
Nocturn9x 5e4aed7e0f Added comment about new reload operation in mainloop 2022-01-31 14:58:29 +01:00
Nocturn9x 84720c1f4c Added config reloading functionality and related subprogram 2022-01-31 14:56:12 +01:00
nocturn9x 76f2df1969 Fixed config parsing module (sorta) and added example config file 2022-01-09 22:46:58 +01:00
nocturn9x d41e67f413 Fixed issues with fcntl and replaced file locking with a duplicate of stderr in O_APPEND mode. Added basic utilities for shutdown/reboot/halt 2022-01-04 12:00:18 +01:00
nocturn9x b68b6f5e74 Failed attempts to fix missing stderr from supervised processes 2021-12-27 15:08:57 +01:00
nocturn9x d6c46b3543 Minor changes to mainloop.nim 2021-12-27 11:18:42 +01:00
nocturn9x 2f107f7f28 Added VERY experimental (untested) networking code 2021-12-27 11:17:24 +01:00
Nocturn9x 9289c455e3 The shell is now spawned as a boot service 2021-12-09 17:30:30 +01:00
nocturn9x ff2701b05f Many changes after first VM tests. Added more entries to gitignore 2021-12-05 22:08:36 +01:00
nocturn9x 63ab7c61e4 More work to fix multiprocessing issues 2021-12-04 18:12:22 +01:00
nocturn9x 41a54288e3 Fixed most bugs with spawning services (last: block signals) 2021-12-04 17:31:18 +01:00
Nocturn9x 5777e1a715 Major code cleanup. Added initial (VERY broken) support for services 2021-12-04 13:47:06 +01:00
Nocturn9x bd7d4e1974 Added sync() system call for testing purposes. Added SIGSTP signal handler. Removed CtrlCException. Added dummy SIGCHLD handler for future process reaping. NimD now creates some symlinks at startup so Linux ports of BSD software don't crash. Moved exists procedure to misc module. UnmountAllDisks now unmounts the source instead of the target. Other minor fixes and typos 2021-12-02 23:16:16 +01:00
Nocturn9x d055d876a1 NimD now sets the machine's hostname, nimd has now colored logs. Added emergency mode (spawns root shell on fatal crash), stopped unmounting virtual filesystems 2021-12-02 18:54:48 +01:00
Nocturn9x 1c6254b50f Improved README 2021-12-02 14:02:05 +01:00
Nocturn9x 407b43ec5f NimD now correctly resolves symlinks when checking if a real filesystem is mounted. also removed extra check for target as it was unnecessary and error-prone 2021-12-02 02:53:51 +01:00
Nocturn9x 26f98cec52 Added shutdown hooks support and unmounting of all handlers upon exit 2021-12-01 12:00:07 +01:00
Nocturn9x 7652a2c1cf Modularized the system further, added mounting of virtual filesystems 2021-11-30 23:56:38 +01:00