<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>36049</bug_id>
          
          <creation_ts>2019-02-06 11:07:32 +0300</creation_ts>
          <short_desc>TODO: build from source</short_desc>
          <delta_ts>2020-06-05 21:03:59 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>go-ipfs</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="ildar">ildar</reporter>
          <assigned_to name="Vitaly Lipatov">lav</assigned_to>
          <cc>lav</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>178220</commentid>
    <comment_count>0</comment_count>
    <who name="ildar">ildar</who>
    <bug_when>2019-02-06 11:07:32 +0300</bug_when>
    <thetext>хорошо бы.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>185756</commentid>
    <comment_count>1</comment_count>
    <who name="ildar">ildar</who>
    <bug_when>2019-11-25 08:35:05 +0300</bug_when>
    <thetext>+ запаковать сервис-файл с отдельным uid/gid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190520</commentid>
    <comment_count>2</comment_count>
    <who name="ildar">ildar</who>
    <bug_when>2020-06-04 13:51:38 +0300</bug_when>
    <thetext>хотя бы этот: //github.com/dylanPowers/ipfs-linux-service</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190533</commentid>
    <comment_count>3</comment_count>
    <who name="ildar">ildar</who>
    <bug_when>2020-06-05 10:16:53 +0300</bug_when>
    <thetext>я в этом деле --- ламер. Но вот, что у меня получилось:

&gt; [Unit]
&gt; Description=ipfs daemon
&gt; After=network.target
&gt; 
&gt; [Service]
&gt; ExecStart=/usr/bin/ipfs daemon
&gt; User=ipfs-daemon
&gt; 
&gt; [Install]
&gt; WantedBy=multi-user.target</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190576</commentid>
    <comment_count>4</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2020-06-05 21:03:59 +0300</bug_when>
    <thetext>(Ответ для ildar на комментарий #3)
&gt; я в этом деле --- ламер. Но вот, что у меня получилось:
&gt; 
&gt; &gt; [Unit]
&gt; &gt; Description=ipfs daemon
&gt; &gt; After=network.target
&gt; &gt; 
&gt; &gt; [Service]
&gt; &gt; ExecStart=/usr/bin/ipfs daemon
&gt; &gt; User=ipfs-daemon
&gt; &gt; 
&gt; &gt; [Install]
&gt; &gt; WantedBy=multi-user.target

Да, примерно так.

# cat /etc/systemd/system/ipfs.service

[Unit]
Description=IPFS

[Service]
Type=simple
User=_ipfs
Environment=IPFS_FD_MAX=4096
ExecStart=/usr/bin/ipfs daemon
Restart=always

[Install]
WantedBy=multi-user.target


Но ведь надо ещё пользователя завести (видимо, с домашним каталогом /var/lib/ipfs).

Но ipfs в первую очередь предназначен для использования пользователем. Запуск его в виде сервиса делается легко,
но нужен пример такого использования.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>