Skip to content

reboot_scheduler exit error: shutdown: can't detach from console Error running script: return code was 255. #6

@krispayne

Description

@krispayne

When using reboot_scheduler in a policy in Casper, the following error sometimes is returned:

Executing Policy Weekly Software Updates (Creative)
Running script reboot_scheduler.sh...
Script exit code: 255
Script result: Start timestamp: Fri Feb 19 09:58:22 PST 2016
A user "blee" is logged in on this Mac. Proceeding...
No pre-assigned deferral was set for the script. Prompting user for input...
2016-02-19 09:58:50.723 cocoaDialog[10231:92956] Couldn't contact spell checker for U.S. English
User chose a 5 minute deferral for reboot
reboot delay is 5
Beginning 5 minute reboot delay
shutdown: [pid 10548]
Shutdown at Fri Feb 19 10:03:57 2016.
shutdown: can't detach from console
Error running script: return code was 255.
Running command softwareupdate -i -a...
Result of command:
No updates are available.
Software Update Tool
Copyright 2002-2012 Apple Inc.

Finding available software
Running Recon...

Definitely running CD 3.0-beta 7. Is this an error with CD or with the script?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions