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

Delegate service management to systemd or other service managers #310

Open
aravindavk opened this issue Feb 9, 2023 · 0 comments
Open

Comments

@aravindavk
Copy link
Member

When Moana server goes down, the other processes(glusterfsd, shd and others) need not stop since it can work without the Storage manager. It is easy to use the already available service manager.

Replace the current code of starting the service with:

  • Create the systemd unit file with all the arguments.
  • Start the service

Note: Do not enable the service. On node reboot, Systemd should not start the service, since Storage manager may need to perform some action before starting the service.

Update the systemd service file as:

[Unit]
Description=Kadalu Storage Manager
After=network.target

[Service]
PIDFile=/var/run/kadalu/kadalu-mgr.pid
ExecStart=/usr/sbin/kadalu mgr --workdir=/var/lib/kadalu --logdir=/var/log/kadalu --service-mgr=systemd

[Install]
WantedBy=multi-user.target

Develop plugin like architecture so that other init systems can be supported.

Container release uses Supervisord to manage the Kadalu Storage manager. Update supervisord conf file with additional arguments to kadalu-mgr

[supervisord]
nodaemon=true

[program:kadalu-mgr]
command=/usr/sbin/kadalu mgr --workdir=/var/lib/kadalu --logdir=/var/log/kadalu --service-mgr=supervisor --supervisor-conf=/etc/supervisor/conf.d/supervisor.conf
aravindavk added a commit to aravindavk/moana that referenced this issue Feb 12, 2023
aravindavk added a commit to aravindavk/moana that referenced this issue Feb 12, 2023
aravindavk added a commit to aravindavk/moana that referenced this issue Feb 12, 2023
aravindavk added a commit to aravindavk/moana that referenced this issue Feb 12, 2023
aravindavk added a commit to aravindavk/moana that referenced this issue Feb 12, 2023
aravindavk added a commit to aravindavk/moana that referenced this issue Feb 12, 2023
aravindavk added a commit to aravindavk/moana that referenced this issue Feb 12, 2023
aravindavk added a commit to aravindavk/moana that referenced this issue Feb 13, 2023
aravindavk added a commit that referenced this issue Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant