Are there any plans in the future to support more linux distributions?
Are there any plans in the future to support more linux distributions?
We've really wanted to add OpenRC support to our installation script for a while but haven't gotten to it yet.
If you know your init system well, you could always write your own service file. Here's the unit file for systemd as a reference: https://github.com/deviceplane/deviceplane/blob/master/insta....
Let me know if you end up getting this to work. Would love to upstream to our install script!
The service file for systemd looks pretty simple, so that's probably not a problem to port to some other init system.
But what's in the "nearly" above, do you have some other concrete requirements for the distro? Any technical reason very small busybox-based systems would be unable to support your agent?
Deviceplane sounds like a very good idea for a niche that really needs something like it!
% printf '1,$s/^KillMode/#&/\nw\n' | ex ./deviceplane.service
%
% /package/admin/nosh/command/system-control convert-systemd-units --no-systemd-quirks ./deviceplane.service
convert-systemd-units: WARNING: ./deviceplane.service: Unused setting: [service] delegate = yes
convert-systemd-units: WARNING: ./deviceplane.service: Unused setting: [service] tasksmax = infinity
convert-systemd-units: WARNING: ./deviceplane.service: Unused setting: [service] timeoutstartsec = 0
convert-systemd-units: WARNING: ./deviceplane.service: Unused setting: [unit] documentation = https://deviceplane.com/docs/
%
% /package/admin/nosh/command/system-control print-service-scripts ./deviceplane
start:#!/bin/nosh
start:#Start file generated from ./deviceplane.service
start:true
stop:#!/bin/nosh
stop:#Stop file generated from ./deviceplane.service
stop:true
run:#!/bin/nosh
run:#Run file generated from ./deviceplane.service
run:#Deviceplane agent
run:hardlimit -o infinity -c infinity -p infinity
run:softlimit -o hard -c hard -p hard
run:/usr/local/bin/deviceplane-agent --controller=https://example.com:443/api --project=example --registration-token=example
restart:#!/bin/sh
restart:#Restart file generated from ./deviceplane.service
restart:sleep 5s
restart:exec true # ignore script arguments
%
Delegate=yes is ignored because I did not run this on a Linux operating system.* http://jdebp.uk./Softwares/nosh/worked-example.html
* http://jdebp.uk./FGA/run-scripts-and-service-units-side-by-s...
* https://manpages.debian.org/unstable/sysvinit-utils/init-d-s...
* https://sources.debian.org/src/opendnssec/1:2.0.4-3/debian/o...