Skip to content

Commit

Permalink
api.stop-imapsync-user-task action
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Sep 27, 2023
1 parent b0973bd commit b3fd8a7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions imageroot/actions/stop-imapsync-user-task/50start-service
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env python3

#
# Copyright (C) 2023 Nethesis S.r.l.
# SPDX-License-Identifier: GPL-3.0-or-later
#

# Configure traefik route for sftpgo webui

import os
import sys
import json
import agent

data = json.load(sys.stdin)

local_user = data["local_user"]
agent.run_helper("systemctl", "--user", "stop", "imapsync@"+local_user).check_returncode()

0 comments on commit b3fd8a7

Please sign in to comment.