/usr/share/pyshared/JobsAdmin/overrides.py is in jobs-admin 0.8.0-0ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | # workaround for services that don't provide very friendly descriptions
_alt_descriptions = {
'apport': _('Crash Reporting'),
'avahi-daemon': _("Service Discovery"),
'bluetooth': _("Bluetooth"),
'cups': _("Printing"),
'kerneloops': _("Kernel Crash Handler"),
'networking': _("Manual Networking"),
'pulseaudio': _("PulseAudio"),
}
# these services should not be managed by us
_protected_jobs = [
'acpid',
'acpi-support',
'alsa-mixer-save',
'anacron',
'apparmor',
'atd',
'binfmt-support',
'brltty',
'console-setup',
'control-alt-delete',
'cron',
'cryptdisks',
'cryptdisks-early',
'cryptdisks-enable',
'cryptdisks-udev',
'dbus',
'dmesg',
'dns-clean',
'ecryptfs-utils-restore',
'ecryptfs-utils-save',
'failsafe-x',
'fancontrol',
'gdm',
'grub-common',
'halt',
'hostname',
'hwclock',
'hwclock-save',
'irqbalance',
'killprocs',
'lm-sensors',
'module-init-tools',
'mountall',
'mountall-net',
'mountall-reboot',
'mountall-shell',
'mounted-dev',
'mounted-tmp',
'mounted-varrun',
'network-interface/lo',
'ondemand',
'pcmciautils',
'plymouth',
'plymouth-log',
'plymouth-splash',
'plymouth-start',
'plymouth-stop',
'pppd-dns',
'procps',
'rc',
'rc.local',
'rcS',
'rc-sysinit',
'reboot',
'rsyslog',
'sendsigs',
'single',
'sudo',
'udev',
'udev-finish',
'udevmonitor',
'udevtrigger',
'udftools',
'umountfs',
'umountnfs.sh',
'umountroot',
'unattended-upgrades',
'upstart-udev-bridge',
'urandom',
'ureadahead',
'ureadahead-other',
'x11-common',
]
def is_protected(jobname):
return jobname in _protected_jobs
def alt_description(jobname):
if jobname in _alt_descriptions:
return _alt_descriptions[jobname]
else:
return None
|