66

Software

obarun.org

Changelog for 66

In 0.9.2.0

Overview

This release makes 66 more predictable and easier to debug. Commands that refuse leave nothing half done, a service can no longer hang its own stop forever, oneshots get the same care as long-running services, and the upgrade works on a running machine.

Debugging. The verbosity you set for the boot, VERBOSITY in init.conf or on the kernel command line, now reaches every 66 tool: the scandir, the supervisors, the internal helpers and the services themselves. When you debug a boot at a high verbosity, you get their trace as well, not only the one of the 66 command. A VERBOSITY exported in your shell does the same for the 66 commands you type.

Stopping a service. A service that does not stop is now killed after 10 seconds, the default chosen when 66 is built, unless its frontend sets its own [Stop] Timeout; [Stop] Timeout = 0 keeps waiting without end. A shutdown or a 66 stop can no longer wait forever on one stuck service.

Oneshots. A oneshot that runs past its timeout is stopped together with every process it started, instead of leaving them behind. 66 status tells you whether its script failed, was killed by a signal or could not be run at all. And a reactor can now act when a oneshot finishes, the same way it already could for a long-running service.

A broken service no longer stops everything. A tree, the boot and the shutdown now start or stop every service that is fine, and only leave aside a broken service, one whose files cannot be read or that sits in a dependency loop, together with the services that depend on it; the tree is then reported as failed, and the broken service is named with the command that repairs it. Before, the tree stopped at the first refusal and the services after it were never touched, so one bad service could leave a whole boot half started.

What a command does. Every command behaves the same way in every situation. A command that refuses one of the services you named changes nothing at all, instead of acting on some of them. -P acts on the services you named and nothing else, not even their logger. A command that needs a helper of the scandir that is still starting now waits a moment instead of failing.

Running 66 commands at the same time. Two 66 commands run at the same time no longer write over each other: they take turns, and the one that waits says so. A service can therefore run 66 itself, for instance Execute = ( 66 start serviceA ), without blocking the command that started it nor breaking the commands you type meanwhile.

Names. A name now means one thing: either the service that bears it, or the service that provides it with Provide, never both, and only one provider answers to a name at a time. 66 remove on a name only a provider answers to tells you which service to remove, instead of removing the provider.

Frontend files. 66 now reads and runs the Execute line of your frontends itself: execl-cmdline is no longer needed around a command, a syntax error stops the start with a message naming the service, and a variable left empty in [Environment] no longer breaks the start.

Gone. A few options that never worked are removed: -l of 66, 66-hpr and 66-shutdownd, clone= of 66 tree, and the LIVE= line of init.conf. The place where 66 keeps its runtime files, /run/66 by default, is now chosen when 66 is built. If you never used these, nothing changes for you.

The upgrade. It is automatic and works without a reboot. The first 66 command after the upgrade converts the files of 66, moves your aliases, rewrites the dependencies and the stop delay of each service from its frontend, and restarts the helpers whose behaviour changed, so a running machine keeps working, see What happens by itself. Check What you must do first.

What you must do

Remove the LIVE= line from /etc/66/init.conf if you edited that file. A key that is not in the table is never read, so a leftover LIVE= is ignored in silence: if you had pointed it somewhere other than the compiled default, the machine now boots on the compiled default without telling you. Drop -l from any script of yours that passes it to 66, 66-hpr or 66-shutdownd, and drop clone= from any call to 66 tree create or 66 tree admin, since all four now stop on an unknown option.

Then check these points against your frontends and your scripts:

  1. 66 remove -P is gone. Drop the -P from your scripts: 66 remove refuses it as an unknown option.
  2. A service name ending with -log is refused. The suffix is reserved to the loggers 66 creates. Rename such a frontend, and every Depends, RequiredBy, OptsDepends, Provide or Conflict that names it. A service already parsed under such a name is removed by the migration, see below.
  3. A service or tree name starting with a dot is refused.
  4. A service that must never be killed on its way down needs [Stop] Timeout = 0 written in its frontend. Without the key, the way down is killed after the general stop delay, 10000 milliseconds by default.
  5. An Emit naming an event with a dot is refused by the parse: the dotted names belong to the events 66 raises itself. Rename the event, and the On that listens to it.
  6. A CopyFrom path that does not exist is refused by the parse.
  7. A script that relied on -P taking the logger along must name the logger itself: -P now acts on the named services only.
  8. 66 fdholder start|stop|restart is gone. Replace it in your scripts by 66 internal start|stop|restart fdholderd: 66 fdholder refuses these subcommands as unknown.
  9. 66 fdholder store|retrieve|list lost their -T option. Pass the timeout to 66 itself: 66 -T 5000 fdholder list instead of 66 fdholder list -T 5000.

New things to explore

Interface changes

Behaviour changes

What happens by itself

The migration to 0.9.2.0 runs under the lock of the system: commands started together migrate the system once.

Bug fixes

For packagers


In 0.9.1.2

Overview

A follow-up to 0.9.1.1, which moved the temporary of a resolve write into /run/66/tmp and laid that directory down together with the scandir. That holds on a machine booted by 66, and nowhere else: where 66 has never booted, an installer chroot, a container or a package build, the directory does not exist and every command that writes a resolve stops on it. Only 0.9.1.1 is affected.

The migration is automatic and stamps the resolve files at the new version.

What you must do

Nothing.

Bug fixes

For packagers

The test suite no longer needs /run/66/tmp to exist. A build that runs meson test in a clean environment, on a machine where 66 never booted, passes under any account.


In 0.9.1.1

Overview

A single fix, for a machine whose bootloader hands the kernel a root filesystem mounted read-only: the scandir was not created at all, and the boot ended on a sulogin prompt. Releases 0.9.0.0 and 0.9.1.0 are affected, 0.8.x is not.

The migration is automatic. It stamps the resolve files at the new version and completes the live directory, so a system already running does not have to be rebooted to get the fix.

What you must do

Nothing.

Bug fixes


In 0.9.1.0

Overview

A maintenance release: one new frontend key, and a long list of fixes on what a command carries with it, on what it reports when it does not get there, and on the event system.

The migration is automatic. It stamps the resolve files at the new version, the addons included, and repairs a list whose count was kept while its content was not. Your declarations are read as they are, nothing of yours has to be rewritten.

Two observable changes are worth a look before you meet them, both in the next section: an exit code that no longer claims success, and a few warnings that now obey the verbosity you asked for. The new key defaults to what your reactors already did.

What you must do

Nothing. Two things are worth knowing before you meet them.

  1. A command that does not reach its target now fails. A deadline set with -T that expires, and a transaction interrupted by a signal, used to return 0 while the services were still in transition. They return 111 now, with their own message. A script that read the exit code of such a command was told it had worked; it will now be told the truth.
  2. A few warnings are quieter. They were printed whatever the verbosity asked for, and now follow their level like every other warning. Add -v2 to see them again: the deprecation notices of the moved frontend keys, the refusal to enable a tree of the boot group, and the report of an aborted transaction.

Read the Propagate entry below if you run a reactor whose action restarts a service that much of the system depends on, which is the case the key was made for.

New things to explore

Bug fixes


In 0.9.0.0

Overview

This is a Major release. It completes the direction announced at 0.7.0.0: 66 is now an independent service manager. It no longer builds against skalibs, s6 or execline — the scanner, the supervisor, the logger, the fd holder and the privilege dropper are native programs of the suite. This release also brings the event system promised on the roadmap, and rewrites the boot and shutdown procedures in C.

The ecosystem migration is automatic: the first 66 command run after the upgrade converts your system and takes a snapshot beforehand. You do not have to convert anything by hand.

What you do have to look at is your own files: a few frontend keys moved or disappeared, the init.conf skeleton lost several keys, the rc.* skeleton scripts are gone, and the boot no longer needs to be told which tree to start — which may make one of your own boot services redundant.

This page is organised around that: what you must do, then what happens by itself, then the rest.


What you must do

A short checklist. Everything here is detailed further down. The first four are silent — nothing errors out, the behaviour simply changes under you.

  1. If your init.conf sets CONTAINER=1, the key is gone and is now ignored: your container boots as bare metal. Use 66 boot -c instead.
  2. If a frontend uses [Logger] Destination, the key is gone and is now ignored: the service silently logs to the default directory. Replace it with [Execute] StdOut = 66log:/path.
  3. If you customized rc.init, rc.init.container, rc.shutdown or rc.shutdown.final, those files are gone and are no longer read: your changes have no effect. See Your boot.
  4. If one of your boot services starts the enabled trees — anything calling 66 tree start on trees other than the boot tree — 66 now does that natively at boot. Remove it, or it runs twice. See How 66 boots now.
  5. Update your frontends to silence the deprecation warnings: keys that moved section, Build, TimeoutStart/TimeoutStop, s6log. All of them still work and warn — this one is not urgent, but the old spellings will be removed in a future release.
  6. Reboot. The migration rewrites your on-disk state; a running 0.8.2.x scandir keeps its old picture until then.
  7. Packagers: see For packagers — the build dependencies and several meson options changed.

Your frontend files

Keys recentered on their section

Several [Main] keys that actually describe a transition or the process execution have moved to the section of their domain. The former names TimeoutStart / TimeoutStop merge into a single Timeout key, since the section now disambiguates the start/stop meaning.

Key Was Now declare in Rename
Notify [Main] [Start] —
DownSignal [Main] [Stop] —
StdIn / StdOut / StdErr [Main] [Execute] —
TimeoutStart [Main] [Start] → Timeout
TimeoutStop [Main] [Stop] → Timeout
TimeoutStart [Logger] [Logger] → Timeout

Nothing breaks. The old placements and the old names are still accepted: they warn at parse time and will be removed in a future release. If a key is declared both at its deprecated location and at its canonical section, the canonical section wins.

For example, this still parses and warns:

[Main]
Type = classic
TimeoutStart = 5000
Notify = 3
StdOut = 66log

and becomes:

[Main]
Type = classic

[Start]
Timeout = 5000
Notify = 3

[Execute]
StdOut = 66log

One thing that is now refused: swapping a [Start] key into [Stop] or the reverse. TimeoutStart or Notify in [Stop], and TimeoutStop or DownSignal in [Start], are a parse error. Their deprecated [Main] spelling is still accepted (as above); only the Start/Stop mismatch is fatal.

Keys removed

An unknown key is only ignored with a warning — it is not a parse error. So a frontend still using these keeps working, minus the behaviour you asked for. Check your frontends.

Key What now
[Logger] Destination Gone. Your custom log directory is silently ignored and the service logs to the default. Use [Execute] StdOut = 66log:/path.
[Logger] TimeoutStop Gone. A logger has a single run transition; use [Logger] Timeout.

Destination was deprecated-but-honored at 0.8.2.0 — it was automatically converted for you. That conversion is over.

Build is deprecated and ignored — the shebang decides

Build is still parsed in [Start], [Stop] and [Logger], but it does nothing and warns. The build type is now auto-detected: a script is custom if and only if the first non-blank line of Execute starts with a shebang (#!); otherwise it is built as an execline script.

Two consequences if you relied on Build:

In both cases, declaring the shebang you actually want is the fix.

s6log becomes 66log

The s6log value of StdIn / StdOut / StdErr is renamed 66log, since the logger is now 66-log. s6log is still accepted, converted at parse time with a warning, keeping your destination. Frontend files are not rewritten on disk — edit them yourself to silence the warning.

MaxDeath becomes a crash budget, and MaxDeathInterval is new

MaxDeath no longer means the number of death events the supervisor remembers. Together with the new MaxDeathInterval key it now expresses a crash budget: how many times a service may die within a time window before 66 gives up, declares it failed and stops restarting it. Both are now declared in [Start] — still accepted, deprecated, in [Main].

0.8.2.2 0.9.0.0
MaxDeath death events remembered deaths allowed inside a MaxDeathInterval window
accepted range 0–4096 0–16
default 5 5
MaxDeath = 0 — infinite restart, never *failed*
MaxDeathInterval — new, milliseconds, default 30000

If a frontend declares MaxDeath above 16, it no longer parses. Everything else keeps its meaning: the default budget is 5 deaths in 30 seconds.

Only an intrinsic run-then-die consumes the budget: a commanded stop never counts, and a failed exec is reported as exec-failed with a progressive backoff without consuming the budget. An exhausted budget gives state failed with result crash-limit; a new 66 start resets the counter.

The logger default timestamp is honored again

A frontend that omits Timestamp in [Logger] used to produce untimestamped log lines, ignoring the compile-time default. It now produces ISO timestamps. Timestamp = none still yields no timestamp; tai and iso were always honored — only the unset case was broken. Expect timestamps to appear in logs where you had none, if you never set the key.

execl-envfile rejects newline and NUL in a value

A value decoding to a newline (\n, \012, \x0a) or a NUL (\0, \000, \x00) is now a syntax error. The environment is held as a NUL-separated list and re-emitted as newline-separated text; neither byte survives the round trip, so the parse now fails loudly instead of corrupting the value silently. Note this diverges from execline’s envfile, which permits a newline in a value.


Your boot

How 66 boots now

This is the most visible behaviour change of the release, and the one most likely to affect services you wrote yourself.

Before, the boot exec’d the rc.init skeleton script, which started one tree, the one named by init.conf’s TREE key, boot by default. Starting the other trees, the enabled ones, was somebody else’s job: typically a service inside the boot tree that called 66 tree start on them once the boot tree was up.

Now, 66 boot does the whole thing itself, in memory, with no script and no intermediate 66 process. Stage 2 brings the system up in two waves:

  1. the boot trees: every tree belonging to the boot group (or the single tree named by TREE, if you set it — see below);
  2. then every enabled tree.

So if you have a service whose job is to start the enabled trees, it is now redundant and does the work a second time. Look for anything in your boot tree that calls 66 tree start on trees other than the boot tree, and remove it. This is worth checking whatever your setup: the service is likely to be provided by your distribution rather than written by you.

Two more consequences of the boot running in-process:

A tree in the boot group cannot be enabled, so the two waves never overlap.

TREE is still there and now optional

TREE is not removed. It is still read from init.conf and from the kernel command line. What changed is that the shipped skeleton no longer sets it, so it now defaults to empty, and empty means group mode.

TREE Boot starts
unset (the new default) every tree in the boot group, then every enabled tree
TREE=boot (or any name) that one tree, then every enabled tree

An existing init.conf that still says TREE=boot keeps working exactly as before. Nothing forces you to move. But it pins the boot to that single tree by name and opts you out of the group mode, so leaving it set is a choice, not an oversight. Clear the key to opt in.

Both forms start the enabled trees in the second wave, that part is unconditional.

init.conf

Key Change
VERBOSITY default 1 → 2
TREE removed from the skeleton, still honored, now empty by default
CONTAINER removed — use 66 boot -c
RCINIT_CONTAINER removed
RCINIT removed
RCSHUTDOWN removed
RCSHUTDOWNFINAL removed
RESCAN removed (it was never wired to anything)
LIVE, PATH, UMASK, CATCHLOG unchanged

No key was added or renamed.

A stale init.conf still listing the removed keys is not an error — the keys are ignored, without a warning. That is fine for five of them, but CONTAINER=1 is a trap: it used to select the container init, it now does nothing at all, so the system silently boots as bare metal. Pass 66 boot -c instead.

Every key is now optional, and an absent key keeps its built-in default. Previously PATH, TREE and LIVE were exported to stage 2 from buffers that stayed empty when the key was absent.

The default verbosity moves to 2 so that the warnings the internal daemons emit, for instance an event reactor stopped by the anti-loop backstop, are visible without reconfiguring anything.

The rc.* skeleton files are gone

Removed Replaced by
rc.init 66 boot stage 2, in memory
rc.init.container the same stage 2; a container is a branch selected by 66 boot -c
rc.shutdown 66-shutdownd stage 3, in memory
rc.shutdown.final the final stage, now compiled C

If you customized any of these, your changes are silently ignored. The files are no longer read, and nothing warns you.

In practice rc.init and rc.shutdown only ever ran 66 tree start|stop ${TREE}, so there is nothing to carry over. The two that carried real hooks:

Containers

Container mode is now selected only by 66 boot -c / --container. CONTAINER, RCINIT_CONTAINER, the CONTAINER_HALTCMD environment channel and the rc.init.container skeleton are all gone.

A container now follows the same path as bare metal, which is the real change: a container is a fully supervised system, not a wrapper around a single command. That is why a customized rc.init.container has no mechanical migration.

The exit-code protocol is unchanged in spirit: pid 1 exits 0 by default, 111 if the boot failed; 66 halt makes pid 1 exit with the EXITCODE found in the halt file; 66 poweroff and 66 reboot report SIGINT and SIGHUP.

A container built from a bare image now sets its own state up instead of aborting: initialising the version marker is best-effort, and boot skips a tree resolution it never used. Three container-only bugs are also fixed, each of which meant a container never stopped: the generated final-stage script was written empty, that script killed itself before it could stop the scanner, and the boot logger echoed every line back into its own fifo and looped forever.

The new container guide covers the whole thing, with build paths for the Obarun base image, Alpine and Debian. The dockerfiles live in contributions/docker/.

The 66-shutdown program is gone

Its job — planned shutdown time, /etc/66/shutdown.allow, the wall message, cancelling — is folded into the 66 halt, 66 poweroff and 66 reboot verbs, which gain -c/--cancel. If you called 66-shutdown directly, call the verb instead.

66-shutdownd moves from bindir to libexecdir — it is an internal daemon, not a user command. Anything hardcoding /usr/bin/66-shutdownd breaks.

Other boot fixes


What happens by itself

You have nothing to convert by hand, that is the point of this section. But automatic is not nothing to do: once the migration has run you reboot, and that is the whole of your part. The rest is here so you know what 66 is doing on your behalf, and the one place it can stop.

The migration is automatic. 66 detects the version change on the first command you run after the upgrade and converts the ecosystem. A snapshot named system@<your current version> (for example system@0.8.2.2) is taken beforehand, so the previous state is always recoverable.

Under the hood, 66 converts every service resolve file to a new internal layout, rebuilds your logger run scripts to use 66-log instead of s6-log preserving the backup count, timestamp, max size and destination (the notification flag takes the 66-log default), points the scandir at fdholderd instead of fdholder, and gives oneshot and module services a scandir entry that the new scanner will not try to supervise.

Supported source versions are 0.8.0.0 through 0.9.0.0; anything older is a hard error, not a silent fallback. From 0.8.2.2 it is a single step.

Three things worth knowing:

Migrating a 0.8.0.0–0.8.1.1 resolve file now also preserves the logger timeout instead of dropping it, and fixes the logger directory ownership by honoring the service’s own logger RunAs instead of forcing the default runner.


New things to explore

Nothing here is required. Your services keep working without touching any of it.

The event system

A service can now react to something happening elsewhere on the system by running a 66 command on itself. It is entirely opt-in: a service that declares nothing behaves exactly as before. Two roles:

A reactor triggers on a service’s state or result, on a signal, on a filesystem event, on a cron expression, on a timer, or on a user event raised with the new 66 emit command. For instance, restarting a service when its configuration file changes on disk:

[Main]
Type = oneshot
Description = "A simple proof of event concept"

[Start]
Execute = ( echo "I restart myself when /etc/my-daemon is edited" )

[Event]
EventType = inotify
From = ( my-config-watcher )
Do = restart

with the source it depends on:

[Main]
Type = event
EventType = inotify
Watch = /etc/my-daemon
On = ( IN_CLOSE_WRITE )

One 66-eventd daemon serves the whole scandir; it is created for you at 66 scandir create time. A reactor that feeds itself is caught by an anti-loop backstop: more than 10 fires within a sliding 10-second window disarms it, and a fresh 66 start is needed to bring it back.

A Do = start reactor of type oneshot or module, held down until its trigger fires, reports the new waiting state.

The full grammar, the vocabulary of each EventType, and the runtime behaviour are on the event system page — see also 66-eventd and 66 emit, and the [Event] section of the frontend reference.

Per-session variables now reach your services

A scandir is started long before a session exists — a user one at the first login, the system one at boot — and its environment is frozen at that point. A variable that only a session knows (DISPLAY, WAYLAND_DISPLAY, XAUTHORITY) could not reach the services it supervises at all. The new 66 env command is the way in:

66 env import DISPLAY XAUTHORITY

import copies the values from the environment of the caller, verbatim. Nothing is computed, guessed or checked — a variable that is not set is skipped with a warning. set, unset and list complete the command.

What is published lands in /run/66/environment/<uid>/, one file per variable, and 66-execute merges that directory into the environment of every service of the scandir at each start, no frontend has to declare anything. The merge happens last and verbatim, so a published value overrides the [Environment] section, the service configuration and the ImportFile files, and a ${...} inside it stays literal.

Each publication raises env.<variable>, each withdrawal unenv.<variable>, so a service can wait for the value it needs rather than be ordered around:

[Main]
Type = classic
Description = "Clipit daemon"

[Start]
Execute = ( clipit )

[Event]
EventType = user
On = ( env.DISPLAY )
Do = start

The directory is created and destroyed with the scandir, so nothing published survives a 66 scandir remove or a reboot. Until you reboot, the scandir carried over from 0.8.2.x has no such directory yet, and 66 env says so rather than publishing into a store no service reads. At most 20 variables can be published at a time; the twenty-first is refused with an explicit error.

New commands

Command What it does
66 log read the logs of a service, of the system, or of everything interleaved — with -f to follow, -g to grep, -s/-u to bound a time range
66 emit raise a user event by name
66 env publish per-session environment variables to every service of the scandir
66 runstate dump a service’s runtime record, the low-level counterpart to 66 state
66 fdholder manage the scandir’s fd holder daemon
66 suspend suspend the system to RAM
66 hibernate hibernate the system to disk

No command was removed.

Long options everywhere

Until now every 66 program accepted short options only. The whole suite now accepts long options too — --help, --verbosity, --live, --tree, --timeout, --color, and per-command forms such as --field, --no-name, --follow, --graph. Both --opt=value and the glued -tfoo form work. Short options are unchanged, so your scripts keep working.

66 signal also gains --stop-group, --cont-group and --kill-group to signal a service’s whole process group.

66 status tells you more

Every service type now reports the same way; there is no s6-svstat fork any more, and oneshot, module and event services get the same treatment as classic ones:

Status : enabled, up (pid 731) since 9h 40min by user

Durations are now human-readable (9h 40min, 40min, 45s) instead of a raw second count, and there is no separate ready figure. A notable last result is shown in parentheses after the pid ((exited 1), (signaled 9), (crash)) and nothing on a clean success, as above.

The new part is by <who>. who caused the last transition: user, boot, event, shutdown, or self when the service acted on its own. unsupervised disappears as a status word, waiting appears, and a stopped service in the graph view (-g) now prints down instead of a bare 0.

66 state displays 7 lines instead of 8: the isup flag is gone, since whether a service is up is now read from the runtime record.

Fields are selectable

66 status and 66 tree status gain -f/--field to choose the fields to display; -o is deprecated — it still works and warns. The same -f/--field and -n/--no-name pair is now on 66 state, 66 resolve, 66 tree resolve and 66 runstate, which previously took -h only.

Options that no longer exist

Gone Use instead
66 scandir reload 66 scandir reconfigure
66 scandir create -s\|--skeleton nothing — boot reads init.conf itself
66 tree start -f nothing — -f/--fork is for tree stop and tree free
-o rename on 66 tree create\|admin nothing — it parsed but never renamed anything, and now errors instead of doing nothing silently

66 tree remove|enable|disable|current and the 66 scandir signal subcommands now accept -h only. They used to advertise administrative options they never applied.


Under the hood

You do not have to do anything about this section. It is here because a few of these choices surface in places you may touch.

66 builds against oblibs only. skalibs, s6 and execline are gone from the build entirely. execline remains a runtime dependency, and only that: the generated service scripts still chainload it.

The programs 66 used to borrow are now its own: s6-svscan → 66-scandir, s6-supervise → 66-supervise, s6-log → 66-log, s6-svc → 66-svctl, the s6-fdholder suite → 66-fdholderd, s6-setuidgid → execl-runas.

Oneshot services no longer go through s6-sudo. They are handled by 66-oneshotd, a daemon written for that purpose, not an s6-sudo equivalent. The 66-oneshot and 66-fdholder-filler helpers are gone, absorbed by their daemons.

Where that surfaces for you:

The internal resolve file is also split into an autonomous core plus addons, which lets 66 answer most runtime questions without loading everything. This is invisible to you (the migration rewrites it) but it is a breaking change for external users of lib66, such as 66-tools: resolve_read_g / write_g / check_g / remove_g are renamed to resolve_read / write / check / remove, and the raw primitives take an _at suffix.


Bug fixes

Beyond the boot, container and migration fixes above, and all of them reachable from ordinary use:


For packagers

Notes


In 0.8.2.2

Overview

This is a bug fix release and convenient build against the latest skarnet software version.

Behavior Changes

Bug Fixes


In 0.8.2.1

Overview

This is an hot fix release and only concern a build make by the Meson build system. Compilation with the previous build system is not affected.

Bug Fixes


In 0.8.2.0

Overview

This document outlines the changes, new features, and bug fixes introduced in the 66 service management system from version 0.8.1.1 to 0.8.2.0. It is intended for users and administrators upgrading their systems to version 0.8.2.0. Please read these notes carefully to understand the changes.

New Features

Bug Fixes

Enhancements

Migration Notes

Notes


In 0.8.1.1

Bug Fixes


In 0.8.1.0

Overview

This release of the 66 project includes several bug fixes, new features, and improvements to enhance the functionality and maintainability of the service management system. Below is a summary of the key changes introduced in this release.

New Features

Bug Fixes

Improvements

Notes


In 0.8.0.2

Bug Fixes


In 0.8.0.1

Bug Fixes


In 0.8.0.0

Synthesized Release Notes

New features

Frontend files

To help with this, use the script below by running: ./migration_service.sh /path/to/my/<FrontendFile>

#!/bin/sh

service="${1}"

sed -e "s:\[main\]:\[Main\]:g" \
    -e "s:@type:Type:g" \
    -e "s:@description:Description:g" \
    -e "s:@version:Version:g" \
    -e "s:@depends:Depends:g" \
    -e "s:@requiredby:RequiredBy:g" \
    -e "s:@optsdepends:OptsDepends:g" \
    -e "s:@options:Options:g" \
    -e "s:@flags:Flags:g" \
    -e "s:@notify:Notify:g" \
    -e "s:@user:User:g" \
    -e "s:@timeout-kill:TimeoutStart:g" \
    -e "s:@timeout-up:TimeoutStart:g" \
    -e "s:@timeout-finish:TimeoutStop:g" \
    -e "s:@timeout-down:TimeoutStop:g" \
    -e "s:@maxdeath:MaxDeath:g" \
    -e "s:@down-signal:DownSignal:g" \
    -e "s:@hiercopy:CopyFrom:g" \
    -e "s:@intree:InTree:g" \
    -e "s:\[start\]:\[Start\]:g" \
    -e "s:@build:Build:g" \
    -e "s:@runas:RunAs:g" \
    -e "s:@execute:Execute:g" \
    -e "s:\[stop\]:\[Stop\]:g" \
    -e "s:\[logger\]:\[Logger\]:g" \
    -e "s:@destination:Destination:g" \
    -e "s:@backup:Backup:g" \
    -e "s:@maxsize:MaxSize:g" \
    -e "s:@timestamp:Timestamp:g" \
    -e "s:\[environment\]:\[Environment\]:g" \
    -e "s:\[regex\]:\[Regex\]:g" \
    -e "s:@configure:Configure:g" \
    -e "s:@directories:Directories:g" \
    -e "s:@files:Files:g" \
    -e "s:@infiles:InFiles:g" \
    -i ${service}

See Rosetta Stone for the list of keyword name changes.

Behavior enhancements

Deprecated and Obsolete keywords

The deprecated key @shebang has been completely removed and is no longer recognized by the parser.

The Destination key (previously @destination) in the [Logger] section is now deprecated and replaced by new StdIn, StdOut, and StdErr keywords. For compatibility, the parser will automatically handle the conversion.

Removal of Deprecated Options:

Bug Fixes


In 0.7.2.1


In 0.7.2.0


In 0.7.1.1


In 0.7.1.0


In 0.7.0.2


In 0.7.0.1


In 0.7.0.0

This release marks a significant rewrite of 66, introducing a new UI and serving as a comprehensive service supervision suite and independent service manager.

Primarily, expect no compatibility with previous versions due to:

For UI changes, frontend file convertion and clean of the 66 architecture, a Rosetta stone is available.

Frontend Files

New fields have been added:

The following field has been removed:

Frontend files for regular account must be now localized at /usr/share/66/service/user, /etc/66/service/user or ${HOME}/.66/service.

Behavioral changes:

The classic type now accepts the fields @depends and @requiredby. The classic type replaces the longrun type.

Logger destinations for oneshot type services can now be declared on a tmpfs directory, particularly useful during boot time.

Services can be started without being enabled first. In this case, the service won’t start on the next reboot.

The bundle and longrun types have been removed, replaced by classic, oneshot, and module types. For compatibility reasons, if your old frontend file declares the service as a longrun type, the parser will convert it to a classic type automatically. No automatic conversion is made for services of type bundle.

[Environment] Section

This section now allows reusing the same variable from the actual environment. For instance:

socket_name=!/run/dbus/system_bus_socket
cmd_args=!--system --address=unix:path=${socket_name}
PATH=/usr/local/bin:${PATH}

The order of key-value pair declaration doesn’t matter:

cmd_args=!--system --address=unix:path=${socket_name}
socket_name=!/run/dbus/system_bus_socket

Variable name must be between ${} to get it value. For instance, $var is not replaced by its value.

Double-quote within value must be escaped with backslash \. Refers to the updated documentation of execl-envfile for futhers information.

Module Changes

The module directory structure has been completely redesigned for better intuitiveness and comprehensiveness. Expect no compatibility with the previous version; a rewrite is required if you use module on your system.

A module cannot contain another module; instead, you can declare it as a dependency via @depends or @requiredby. These can also be specified through the configure module script.

Refer to the specific module page for furthers information.

Trees

Trees now react as services regarding graph dependencies. You can declare a tree depending on or required-by others.

A default named global tree is provided. Services without their localization defined or users not specifying a tree to use will be defined within that tree.

A seed file can be provided for automatic tree configuration at creation time. For example, it defines depends/requiredby dependencies of the tree.

If a service declares a non-existing tree, the tree will be created automatically with a default configuration, but without any depends/requiredby dependencies. To configure the tree with specific requirements at creation time, provide and install seed file with your service.

Configure Script

Removed flags: - --with-system-module=DIR - --with-sysadmin-module=DIR - --with-user-module=DIR

Added flags: - --with-default-tree-name=NAME - --max-path-size=BYTES - --max-service-size=BYTES - --max-tree-name-size=BYTES - --with-system-seed=DIR - --with-sysadmin-seed=DIR - --with-user-seed=DIR

The slashpackage convention was removed.

Skeleton files

The skeleton files shudown, reboot, poweroff and halt are removed and replaced by 66 reboot, 66 poweroff, 66 halt command respectively.

Code Changes

The code has been largely rewritten and simplified, offering more features with approximately the same number of code lines. Additionally, the code now uses less HEAP memory, although this optimization is ongoing.

The parser was completely rewritten and heavily optimized, significantly reducing the time to parse a service(by three times).

The start process was rewritten due to the removal of s6-rc. Oblibs now provide general functions to build any Acyclic graph.

The code for the module part was revamped and greatly simplified.


In 0.6.2.0


In 0.6.1.3


In 0.6.1.2


In 0.6.1.1


In 0.6.1.0


In 0.6.0.1


In 0.6.0.0


In 0.5.1.0


In 0.5.0.1


In 0.5.0.0

This is a Major release, you need to update your trees with 66-update tool. If you skip from a version earlier than 0.4.0.1, the 66-update will not work. In this case, you need to reconstruct your trees manually. Downgrading to a previous version will not work either, due to the new format of the resolve inner files.


In 0.4.0.1


In 0.4.0.0

This is a Major release, you need to update your trees with 66-update tool.


In 0.3.0.3


In 0.3.0.2


In 0.3.0.1


In 0.3.0.0

This is a Major release, you need to update your trees with 66-update tool.


In 0.2.5.2


In 0.2.5.1


In 0.2.5.0


In 0.2.4.1


In 0.2.4.0


In 0.2.3.2


In 0.2.3.1


In 0.2.3.0


In 0.2.2.2


In 0.2.2.1


In 0.2.2.0


In 0.2.1.2


In 0.2.1.1


In 0.2.1.0


In 0.2.0.4


In 0.2.0.3


In 0.2.0.2


In 0.2.0.0


In 0.1.0.1


In 0.1.0.0


In 0.0.2.2


In 0.0.2.1


In 0.0.2.0


In 0.0.1.1