2 ms·
% printf '1,$s/^KillMode/#&/\nw\n' | ex ./deviceplane.service % % /package/admin/nosh/command/system-control convert-systemd-units --no-systemd-quirks .
by JdeBP 7y ago
% 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./Softwares/nosh/worked-example.html
* http://jdebp.uk./FGA/run-scripts-and-service-units-side-by-side.html http://jdebp.uk./FGA/run-scripts-and-service-units-side-by-s...