update/software/service-files/software-controller-daemon-restart
Jessica Castelino 965a6d3639 Setup controller and agent processes for "software"
Current Status:
 - CLI commands
 - API endpoints
 - controller process
 - agent process
 - Logging

Test Plan:
  PASS: Build and Install ISO
  PASS: software-agent and software-controller
        services are active post unlock
  PASS: tox

Story: 2010676
Task: 47817
Signed-off-by: Jessica Castelino <jessica.castelino@windriver.com>
Change-Id: I394780ce40fee398c4eacb3aacb575a03ff93332
2023-04-20 19:22:30 +00:00

21 lines
447 B
Bash

#!/bin/bash
#
# Copyright (c) 2023 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
. /etc/software/software-functions
#
# Triggering a restart of the software daemons is done by
# creating a flag file and letting the daemon handle the restart.
#
loginfo "Requesting restart of software-controller"
restart_software_controller_flag="/run/software/.restart.software-controller"
touch $restart_software_controller_flag
exit 0