blob: 2ad5f4871c4764c9b27f05eb0fd545bdc1b85e07 [file] [log] [blame]
# Copyright 2016 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description "Prepare upstart-socket-bridge for CUPS"
start on starting upstart-socket-bridge
task
env CUPS_SOCKET_DIR=/run/cups
# HACK: Create directory now, since upstart-socket-bridge doesn't create it.
script
output=$(mkdir -p -m 0755 "${CUPS_SOCKET_DIR}" 2>&1) || \
logger -t "${UPSTART_JOB}" "Failed to create cups run dir: ${output}"
end script