Skip to content

Systemd service does't work for 'package' install_method #584

@wilful

Description

@wilful

Hello! If i choose 'packege' install_methon. After installation i have broken systemd service on my server, like this (binary file placed in /usr/bin from official Hashicorp repository mirror):

# systemctl cat consul
# /etc/systemd/system/consul.service
# THIS FILE IS MANAGED BY PUPPET
[Unit]
Description=Consul Agent
After=network-online.target
Wants=network-online.target

[Service]
Type=exec
User=consul
Group=consul
ExecStart=/usr/local/bin/consul agent \
  -config-dir /etc/consul
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
LimitNOFILE=131072

[Install]
WantedBy=multi-user.target

Because default setting bin_dir work only for 'url' install_method, after changing this need to configure bin_dir too
May be need set to default bin folder, when i choose 'package'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions