Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] dinit not found file in /etc/dinit.d/ (Read 773 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] dinit not found file in /etc/dinit.d/

Hello. I wrote several files to run programs and scripts but it does not work!
I also checked the access level and they were correct.

ls -la in /etc/dinit.d/
Code: [Select]
total 384
drwxr-xr-x   9 root root  4096 مارس     4 13:47 .
drwxr-xr-x 147 root root 12288 مارس     4 15:35 ..
-rw-r--r--   1 root root   155 نوامبر   5 15:37 acpid
-rw-r--r--   1 root root   139 نوامبر   4 17:57 alsa
-rw-r--r--   1 root root   286 مارس     4 14:17 anbox-container-manager
-rw-r--r--   1 root root   526 مارس     4 13:50 anbox-container-manager-preloader
drwxr-xr-x   2 root root  4096 مارس     4 01:32 anbox.d
-rw-r--r--   1 root root   102 مارس     4 14:16 anbox-session-manager
-rw-r--r--   1 root root   177 دسامبر   4 14:46 apache
-rw-r--r--   1 root root   146 دسامبر   3 13:14 auditctl
-rw-r--r--   1 root root   115 دسامبر   3 13:14 auditd
-rw-r--r--   1 root root   104 ژانویه  12 14:49 binfmt
-rw-r--r--   1 root root   161 ژانویه  12 14:49 boot
drwxr-xr-x   2 root root  4096 مارس     4 13:50 boot.d
-rw-r--r--   1 root root   105 ژانویه  12 14:49 cgroups
...

dinit error:
Code: [Select]
sudo dinitctl start anbox-container-manager
dinitctl: failed to find/load service.

anbox-container-manager:
Code: [Select]
type		= process
command = /usr/bin/anbox container-manager --daemon --privileged --data-path=/var/lib/anbox --container-network-gateway=192.168.250.1 --container-network-address=192.168.250.2
logfile = /var/log/dinit/anbox-container.log
depends-on = anbox-container-manager-preloader

anbox-container-manager-preloader:
Code: [Select]
# Note: the "fuse-dinit" package for ArtixLinux is required! If you installed this with original PKGBUILD, Ignore this note.
# Note: the "lxc" package is required! If you installed this with original PKGBUILD, Ignore this note.

type = scripted
command = /usr/bin/bash /etc/dinit.d/anbox.d/anbox-container-manager_script
stop-command = /usr/bin/bash /etc/dinit.d/anbox.d/anbox-container-manager_stop
logfile  = /var/log/dinit/anbox-container.log
depends-on = mount mount-all sysusers cgropus fuse net-lo
wait-for = network

what's problem? i not see problem


with respect

Re: dinit not found file in /etc/dinit.d/

Reply #1
Any messages in the system log? You could also try "sudo dinitcheck anbox-container-manager"

Re: dinit not found file in /etc/dinit.d/

Reply #2
Thank you for answering :)
I realized my problem:
There was a problem with the dependents:

cgropus is false; cgroups is ture
The dependencies must also be separate.

With respect