autostart
The autostart command controls whether kasl starts monitoring automatically when the system boots or the user logs in. The mechanism is per-user, not system-wide: the daemon tracks one person’s activity, so it has no business running as root or before login.
kasl autostart [COMMAND]| Subcommand | Purpose |
|---|---|
enable |
Enable autostart |
disable |
Disable autostart |
status |
Show current autostart status |
kasl autostart enable
Section titled “kasl autostart enable”kasl autostart enableWindows: tries the Windows Task Scheduler first (requires administrator privileges); if that is denied, falls back automatically to a per-user Registry Run key.
macOS: a LaunchAgent plist written to ~/Library/LaunchAgents.
Linux: a systemd user unit, enabled for the current user. The unit file is written even where systemd is absent, so it takes effect on the next login.
kasl autostart disable
Section titled “kasl autostart disable”kasl autostart disableRemoves the autostart configuration. On Windows this attempts to remove both the Task Scheduler entry and the Registry Run key, regardless of which one is actually present.
kasl autostart status
Section titled “kasl autostart status”kasl autostart statusReports whether autostart is currently enabled or disabled. The check only reports one of these two states - it does not report which mechanism (Task Scheduler vs. Registry, or LaunchAgent vs. systemd) is in use.
Sample Output
Section titled “Sample Output”ℹ️ Autostart has been enabled. Kasl will start automatically on system boot.ℹ️ Autostart has been enabled for current user. Kasl will start when you log in.ℹ️ Autostart is currently: enabledstatus prints either enabled or disabled - nothing else.
Examples
Section titled “Examples”# Enable autostartkasl autostart enable
# Check current statuskasl autostart status
# Disable autostartkasl autostart disableRelated commands
Section titled “Related commands”watch- the monitoring command that autostart enablessetup- configure kasl before setting up autostartself-update- update kasl while preserving autostart settings