History log of /haiku/data/launch/system
Revision Date Author Comments
# a04b2f4c 27-Sep-2021 Augustin Cavalier <waddlesplash@gmail.com>

Launch app_server in user context.

This way, we get the user's environment variables, and so should
input_server, which is started by app_server.

This should, after 6 years, fix #12534. We may need to revisit this
when/if we add multiuser support, but that is a problem for another day.

Change-Id: I04698306bc68a585acd232e9f9d29c50bc170a1f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4506
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 895e0c8a 29-Sep-2021 Augustin Cavalier <waddlesplash@gmail.com>

launch/system: Use single-line "on" trigger.

The "user" launch file already uses this everywhere, so
we may as well save a few characters.


# b5efad4e 22-Feb-2021 Alexander G. M. Smith <agmsmith@ncf.ca>

PackageKit: Remove hard coded first boot package processing scripts.

Once change 2342 is in place (running first boot scripts exported from
packages), see https://review.haiku-os.org/c/haiku/+/2342,
remove data/system/boot/post_install/add_catalog_entry_attributes.sh
and related support infrastructure (magic files, launch_roster entries).

The work this script did can in fact be done at image creation time
instead of at first boot.

Change-Id: I485e1a0a87c3e6a6ba3f882e65996f2327134d37
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3751
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# de0e15ae 07-Nov-2015 Axel Dörfler <axeld@pinc-software.de>

launch_daemon: corrected print server signature.

* Not sure yet why it actually worked before; must be some other
bug :-)


# d8c0972a 06-Nov-2015 Axel Dörfler <axeld@pinc-software.de>

launch_daemon: Added "setting" condition.

* Moved the mail_daemon to the user startup, and start it only if
enabled in the settings.


# d2eca26b 19-Oct-2015 Axel Dörfler <axeld@pinc-software.de>

Moved per user post install actions to first-login script.

* The same mechanism (and the same PostInstallScript) is used for this.
* If a file first_login exists in ~/config/settings/boot, the first-login
scripts are launched, and the file removed.
* This fixes adding the deskbar tray icons even when there is no Deskbar
running yet (for example on first boot when the FirstBootPrompt
starts), or, IOW bug #12275.


# cfe6baf6 19-Oct-2015 Axel Dörfler <axeld@pinc-software.de>

cddb_daemon: renamed to cddb_lookup, moved to /src/bin.

* It's now a standard command line tool that is launched automatically
via the launch_daemon whenver a volume is mounted.


# b5e496b5 14-Oct-2015 Axel Dörfler <axeld@pinc-software.de>

notification_server: Converted to BServer, launch on demand.


# 8f279618 14-Oct-2015 Axel Dörfler <axeld@pinc-software.de>

midi_server: Converted to BServer, launched on demand.


# 37e5a036 13-Oct-2015 Axel Dörfler <axeld@pinc-software.de>

print_server: Converted to launch_daemon, run on demand only.

* Seems to work fine, although it should probably also be triggered when
there are still jobs in the queue -- someone more knowledgeable might
want to chime in here, please :-)
* If this turns out to be problematic, we can just drop the "on_demand"
job config again.


# 03bf949e 08-Aug-2015 Rene Gollent <rene@gollent.com>

launch_daemon: Correctly fix #12289 as pointed out by Axel.

- Rather than depending just on mount_server's launch, instead use
a condition that waits for the volumes mounted event. Had missed
the existence of this one previously.


# fdc32a38 07-Aug-2015 Rene Gollent <rene@gollent.com>

Launch configuration: Fix #12289.

- Adjust launch configuration such that media_server requires mount_server.
Otherwise, if the user has specified sound files for any events that are
on non-boot disks, these won't be found/loaded properly during the boot
process.


# 006fd653 22-Jul-2015 Rene Gollent <rene@gollent.com>

Add missing launch definition for net_server.


# 65ed8a5e 17-Jul-2015 Axel Dörfler <axeld@pinc-software.de>

Added post-install script, and start UserBootscript again.

* This is the final missing piece of the former boot process.
* Removed the unused Bootscript, and Bootscript.cd files.


# 5e17d2d7 16-Jul-2015 Axel Dörfler <axeld@pinc-software.de>

mount_server: Ported to a launch_daemon world.

* Now inherits from BServer, and gets its message port from the
launch_daemon.
* It registers an event "initial_volumes_mounted" that allows other
services to be started afterwards.
* This is now used in the boot launch files, and makes the scripting
based previous solution superfluous which has been removed with this
commit, too.
* This implements the last needed feature in order to reproduce the
complete former boot process using the launch_daemon.


# 05a567f6 06-Jul-2015 Axel Dörfler <axeld@pinc-software.de>

Added autologin command, and use it by default.

* This will handle our current single-user login needs.
* Removed Login from the minimum image again.


# c086a183 15-Jun-2015 Axel Dörfler <axeld@pinc-software.de>

launch_daemon: Improved target support.

* You can now put jobs/services into a target.
* Instead of having Login started as part of the normal boot process,
it's now in the "login" target.
* The app_server now launches the login target when a login becomes
available (ie. during startup, but that could be improved later on).


# ac0a462f 10-Jun-2015 Axel Dörfler <axeld@pinc-software.de>

launch_daemon: Basic user session implementation.

* Instead of launching Tracker/Deskbar directly, we now launch the
Login application.
* This will now start a new session for the selected user (the password
is currently ignored).
* When a user session is started, the launch_daemon forks, and the
child then restarts the LaunchDaemon application in user mode.
* It then registers itself with its parent, in order to resolve user
dependent services.
* Added a user launch file that will cause Tracker, and Deskbar to
start in the new session.


# bea38cb7 11-May-2015 Axel Dörfler <axeld@pinc-software.de>

registrar: implemented auth port via launch_daemon.

* get_roster_port_name() is no longer needed.
* This also removes the app_server restart code from the debug
server -- this will be done by the launch_daemon in the future.


# 43aec2c7 21-Apr-2015 Axel Dörfler <axeld@pinc-software.de>

launch_daemon: added support for arbitrary ports.

* Dropped "create_port" -- this is now the default for services.
* Additionally (or alternatively, if you use the "legacy" mode), you can
now create named ports, and specify their capacity.
* Added convenience methods to BLaunchRoster that automatically use the
signature of the current be_app.


# 89168ad8 15-Apr-2015 Axel Dörfler <axeld@pinc-software.de>

Boot the system via launch_daemon.

* This is actually working already, although we cannot reproduce all
the features of the former Bootscript yet. This is without any
dependency support in launch_daemon.
* All shell activity like cleaning out /tmp, setting up the environment,
setting the time, etc. is not yet working.


# 1480e5da 02-Apr-2015 Axel Dörfler <axeld@pinc-software.de>

The beginnings of a launch_daemon for Haiku.

* This will be heavily inspired by Apple's launchd, as well as
systemd -- for now it really doesn't do a whole lot, though.
* What works so far: the configuration files are read, parsed, and
the jobs created.
* The jobs are even initialized, and their message ports created.
* BApplication now retrieves a previously created port from the
launch_daemon for use with BServer.
* Only the registrar actually uses this for now.


# 03bf949ed4c405d3c8ba9471938ff08cb8dc2d75 08-Aug-2015 Rene Gollent <rene@gollent.com>

launch_daemon: Correctly fix #12289 as pointed out by Axel.

- Rather than depending just on mount_server's launch, instead use
a condition that waits for the volumes mounted event. Had missed
the existence of this one previously.


# fdc32a38447b489450b0f816219fcc0bd65a70b2 07-Aug-2015 Rene Gollent <rene@gollent.com>

Launch configuration: Fix #12289.

- Adjust launch configuration such that media_server requires mount_server.
Otherwise, if the user has specified sound files for any events that are
on non-boot disks, these won't be found/loaded properly during the boot
process.


# 006fd653962cea3ecab78a7c8599d5c929acaa8b 22-Jul-2015 Rene Gollent <rene@gollent.com>

Add missing launch definition for net_server.


# 65ed8a5e87f10405105fa017a0879161e84620b6 17-Jul-2015 Axel Dörfler <axeld@pinc-software.de>

Added post-install script, and start UserBootscript again.

* This is the final missing piece of the former boot process.
* Removed the unused Bootscript, and Bootscript.cd files.


# 5e17d2d743272a72125b31b5ca055941b8b50721 16-Jul-2015 Axel Dörfler <axeld@pinc-software.de>

mount_server: Ported to a launch_daemon world.

* Now inherits from BServer, and gets its message port from the
launch_daemon.
* It registers an event "initial_volumes_mounted" that allows other
services to be started afterwards.
* This is now used in the boot launch files, and makes the scripting
based previous solution superfluous which has been removed with this
commit, too.
* This implements the last needed feature in order to reproduce the
complete former boot process using the launch_daemon.


# 05a567f6092ffac09dd9a07c6e2b067fea0bd3a1 06-Jul-2015 Axel Dörfler <axeld@pinc-software.de>

Added autologin command, and use it by default.

* This will handle our current single-user login needs.
* Removed Login from the minimum image again.


# c086a1834bb7041ca9f64abfee7a3b3bb9f06aa9 15-Jun-2015 Axel Dörfler <axeld@pinc-software.de>

launch_daemon: Improved target support.

* You can now put jobs/services into a target.
* Instead of having Login started as part of the normal boot process,
it's now in the "login" target.
* The app_server now launches the login target when a login becomes
available (ie. during startup, but that could be improved later on).


# ac0a462fba6a1337e6659ebf0ffd69fd64030786 10-Jun-2015 Axel Dörfler <axeld@pinc-software.de>

launch_daemon: Basic user session implementation.

* Instead of launching Tracker/Deskbar directly, we now launch the
Login application.
* This will now start a new session for the selected user (the password
is currently ignored).
* When a user session is started, the launch_daemon forks, and the
child then restarts the LaunchDaemon application in user mode.
* It then registers itself with its parent, in order to resolve user
dependent services.
* Added a user launch file that will cause Tracker, and Deskbar to
start in the new session.


# bea38cb711f29e929d62ceed9a0684e43c548a0d 11-May-2015 Axel Dörfler <axeld@pinc-software.de>

registrar: implemented auth port via launch_daemon.

* get_roster_port_name() is no longer needed.
* This also removes the app_server restart code from the debug
server -- this will be done by the launch_daemon in the future.


# 43aec2c726cc9522f961f87771f1ea712d54c0b7 21-Apr-2015 Axel Dörfler <axeld@pinc-software.de>

launch_daemon: added support for arbitrary ports.

* Dropped "create_port" -- this is now the default for services.
* Additionally (or alternatively, if you use the "legacy" mode), you can
now create named ports, and specify their capacity.
* Added convenience methods to BLaunchRoster that automatically use the
signature of the current be_app.


# 89168ad8b98352ee9058331237ed7f59e416d9bf 15-Apr-2015 Axel Dörfler <axeld@pinc-software.de>

Boot the system via launch_daemon.

* This is actually working already, although we cannot reproduce all
the features of the former Bootscript yet. This is without any
dependency support in launch_daemon.
* All shell activity like cleaning out /tmp, setting up the environment,
setting the time, etc. is not yet working.


# 1480e5da6fc4a2926c3da1a973e39927ac2171ae 02-Apr-2015 Axel Dörfler <axeld@pinc-software.de>

The beginnings of a launch_daemon for Haiku.

* This will be heavily inspired by Apple's launchd, as well as
systemd -- for now it really doesn't do a whole lot, though.
* What works so far: the configuration files are read, parsed, and
the jobs created.
* The jobs are even initialized, and their message ports created.
* BApplication now retrieves a previously created port from the
launch_daemon for use with BServer.
* Only the registrar actually uses this for now.