integ/filesystem
Rahul Roshan Kachchap aa8a787dfd Enabling Luks service manager as daemon service
Added functionality to run luks-fs-mgr as daemon
service. Included library libdaemon which provides functions and
utilities to daemonize a program.
The daemon function is called to daemonize the program.
The daemon function is provided by libdaemon, and it sets up the
necessary environment for a daemon process. It is called with two
arguments, both set to 0. The first argument is the nochdir
parameter, which tells the function not to change the current
working directory to the root directory ("/").
The second argument is the noclose parameter, which tells the
function not to close standard input, output, and error streams.

Depends on: https://review.opendev.org/c/starlingx/integ/+/898695

Test Plan:
PASSED: build-pkgs -c -p luks-fs-mgr
PASSED: build-image
PASSED: AIO-SX bootstrap
PASSED: binary available at /usr/local/sbin/
PASSED: systemd unit file available at /lib/systemd/system
PASSED: luks_config.json avaiable at /etc/luks-fs-mgr.d/
PASSED: sudo systemctl start luks-fs-mgr
        luks-fs-mgr.service - Create and mount encrypted vault using
                                                                LUKS
        Loaded: loaded (/lib/systemd/system/luks-fs-mgr.service;
                                enabled; vendor preset: enabled)
        Active: active (running) since Fri 2023-10-13 05:58:04 UTC;
                                                       1h 34min ago
        Main PID: 1770 (luks-fs-mgr)
        Tasks: 1 (limit: 28602)
        Memory: 2.1M
        CPU: 3.422s
        CGroup: /system.slice/luks-fs-mgr.service
                └─1770 /usr/local/sbin/luks-fs-mgr start
PASSED: sudo systemctl stop luks-fs-mgr

Story: 2010872
Task: 48944

Change-Id: I975409d749fed8f27b291db80fa10223de60b05c
Signed-off-by: Rahul Roshan Kachchap <rahulroshan.kachchap@windriver.com>
2023-12-01 01:24:29 -05:00
..
drbd/drbd-tools debian: Create /drbd directory 2022-06-06 06:27:54 +00:00
luks Enabling Luks service manager as daemon service 2023-12-01 01:24:29 -05:00
parted Fix lint errors identified by Zuul pylint job 2023-03-15 12:07:17 +00:00