Skip to main content

This provides the features one wants from a daemon for arbitrary commands providing a service:

  • process id (pid) files for both svcd and the service command

  • filesystem visible status (command running, service enabled) via cs.app.flag

  • command restart if the command exits

  • command control (stop, restart, disable) via cs.app.flag

  • test function to monitor for service viability; if the test function fails, do not run the service. This typically monitors something like network routing (suspend service while laptop offline) or a ping (suspend ssh tunnel while target does not answer pings).

  • signature function to monitor for service restart; if the signature changes, restart the service. This typically monitors something like file contents (restart service on configuration change) or network routing (restart ssh tunnel on network change)

  • callbacks for service command start and end, for example to display desktop notifications

I use this to run persistent ssh port forwards and a small collection of other personal services. I have convenient shell commands to look up service status and to start/stop/restart services.

See cs.app.portfwd which I use to manage my ssh tunnels; it is a single Python programme running multiple ssh commands, each via its own SvcD instance.

Release files for cs.app.svcd 20171118

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cs.app.svcd 20171118
File Size Uploaded
cs.app.svcd-20171118.tar.gz 6.9 kB Details

Release files / cs.app.svcd-20171118.tar.gz

Download URL cs.app.svcd-20171118.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
db5263b8aeb7d1700e0969d10dd9a53cbe1317c5a367f72ced678e460c774793
BLAKE2b-256 checksum
How to use checksums
eb2e4e002f4fe44e6baae606aaa0e842521462c125ae935662089e0a79c88c0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

20171118 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page