-
Notifications
You must be signed in to change notification settings - Fork 36
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
How to convert to a service #59
Comments
I think, that. you cannot convert this daemon-already isi_data_connecto because it uses a module called daemons and then detaches itself from parent pid. In default isi_data_connector there are three execution types : start, stop, restart, but if you look in isi_data_insights_d.py, then there is a daemons.run(), which lets you start a script, without detaching, so you must introduce the run execution type. Check args.action in isi_data_insights_d.py;. if still unclear, let me know. |
Yes, as written, the code already turns itself into a daemon. It would not be difficult to add support for the collector to run in the foreground, but I believe you can already use it under systemd as a service, provided you set the Type to "forking" instead of simple:
|
How to you convert the collector to a service?
I put together this file under /lib/systemd/system/ but things are working as expected....any advise?
[Unit]
Description=Isilon SDK for Grafana
After=influxdb.service
Requires=influxdb.service
StartLimitIntervalSec=350
[Service]
Type=simple
Restart=always
Restart=on-failure
RestartSec=30
User=root
ExecStart=/root/start-sdk.sh
[Install]
WantedBy=multi-user.target
The text was updated successfully, but these errors were encountered: