~mhall119/developer-ubuntu-com/apidoc-frameworks-creation

« back to all changes in this revision

Viewing changes to md_importer/tests/data/snappy-test/docs/autoupdate.md

Major upgrade to Django 1.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Autoupdate
 
2
 
 
3
*Autoupdate* is a feature that will guarantee you are always up to
 
4
date. It is enabled by default, and can be disabled via `snappy config`.
 
5
 
 
6
## Usage
 
7
 
 
8
To check whether the feature is active, run
 
9
 
 
10
    snappy config ubuntu-core | grep autoupdate
 
11
 
 
12
If you want to disable it run
 
13
 
 
14
    echo 'config: {ubuntu-core: {autoupdate: off}}' | sudo snappy config ubuntu-core -
 
15
 
 
16
and you then re-enable it via
 
17
 
 
18
    echo 'config: {ubuntu-core: {autoupdate: on}}' | sudo snappy config ubuntu-core -
 
19
 
 
20
Every time autoupdate triggers it will try to update the whole system;
 
21
if an `ubuntu-core` update is available the system will automatically
 
22
reboot, although a message is printed to console with instructions on
 
23
how to abort the reboot, in case you are logged in at the time.
 
24
 
 
25
> If you need a single configuration that works both on 15.04 and rolling, you
 
26
> can use both the old and new keys, e.g. `config: {ubuntu-core: {autoupdate:
 
27
> on, autopilot: on}}`.
 
28
 
 
29
## Implementation details
 
30
 
 
31
Autoupdate used to be called *autopilot* (but that got very confusing,
 
32
especially when people were using snappy with other things that have
 
33
their own autopilot, like an OpenStack deployment that used
 
34
Canonical's own OpenStack Autopilot, or in mobile robots that could
 
35
fly themselves); the `systemd` units still use this name.
 
36
 
 
37
For more details of when it is to be triggered you could dig into the
 
38
implementation, via
 
39
 
 
40
    systemctl list-timers snappy-autopilot.timer
 
41
 
 
42
To check whether the update ran, run
 
43
 
 
44
    systemctl status -l snappy-autopilot.service
 
45
 
 
46
and to view any output from the command run
 
47
 
 
48
    sudo journalctl -u snappy-autopilot.service