User avatar
Norm (ノーム) CastoriceBlushing @norm@shrimp.biribiri.dev
Admin
Private
Expert in purple things
Location
Styxia
other acct @mikoto@akko.wtf
avatar src https://x.com/ckzh33/status/2091118186821546133
banner src https://www.bilibili.com/opus/1212688646043336745
User avatar
Norm (ノーム) CastoriceBlushing @norm@shrimp.biribiri.dev
4mo
@lucxx oh that's weird
1
0
0
0
User avatar
Norm (ノーム) CastoriceBlushing @norm@shrimp.biribiri.dev
4mo
@lucxx does changing the domain to old.reddit.com work?
1
0
0
0
User avatar
Norm (ノーム) CastoriceBlushing @norm@shrimp.biribiri.dev
4mo
(please don't actually do this)
1
0
0
0
User avatar
Norm (ノーム) CastoriceBlushing @norm@shrimp.biribiri.dev
4mo
src: www.reddit.com/r/HonkaiStarRail/comments/1u8l2dz/helo_i_hope_its_ok_to_show_my_cat_here_i_just/
❤️1
1
5
1
1
User avatar
Norm (ノーム) CastoriceBlushing @norm@shrimp.biribiri.dev
4mo
obligatory server fastfetch
0
0
0
0
User avatar
Norm (ノーム) CastoriceBlushing @norm@shrimp.biribiri.dev
4mo
Lol had one of those religious missionaries knock on our door. Always fun to try to make an excuse to not talk to them for too long
1
0
0
0
User avatar
Norm (ノーム) CastoriceBlushing @norm@shrimp.biribiri.dev
4mo
www.pixiv.net/en/artworks/143398179
0
0
0
0
User avatar
Norm (ノーム) CastoriceBlushing @norm@shrimp.biribiri.dev
4mo
updated openrc service file for iceshrimp.net:
#!/sbin/openrc-run
supervisor="supervise-daemon"

name="Iceshrimp.NET"
description="Iceshrimp.NET Fediverse server"

command="/usr/share/iceshrimp.net/Iceshrimp.Backend"
command_args="--migrate-and-start"
command_user="iceshrimp:iceshrimp"

no_new_privs=true

ICESHRIMP_CONFIG="${ICESHRIMP_CONFIG:-/etc/iceshrimp.net/configuration.ini}"
MALLOC_TRIM_THRESHOLD_="${MALLOC_TRIM_THRESHOLD:-131072}"
supervise_daemon_args="$supervise_daemon_args --env ICESHRIMP_CONFIG=${ICESHRIMP_CONFIG}"
supervise_daemon_args="$supervise_daemon_args --env MALLOC_TRIM_THRESHOLD_=${MALLOC_TRIM_THRESHOLD_}"

directory="/usr/share/iceshrimp.net"
pidfile="/run/${RC_SVCNAME}.pid"

stdout_logfile="${stdout_logfile:-/var/log/${RC_SVCNAME}/out.log}"
stderr_logfile="${stderr_logfile:-/var/log/${RC_SVCNAME}/err.log}"
output_logger="tsf $stdout_logfile"
error_logger="tsf $stderr_logfile"

depend() {
        need net
        after firewall
}

start_pre() {
        # Copied from https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/installation/init.d/akkoma
        # Ensure logfile ownership and perms are alright
        checkpath --file --owner "$command_user" "$stdout_logfile" "$stderr_logfile" \
        || eerror "Logfile(s) not owned by $command_user, or not a file!"
        checkpath --writable "$stdout_logfile" "$stderr_logfile" \
        || eerror "Logfile(s) not writable!"
}





tsf is just a small wrapper script around ts from the moreutilspackage that adds timestamps since iceshrimp.net doesn't natively have those in their output:
#!/bin/sh
ts >> "$1"





You can set
output_logger and error_logger to logger -t $RC_SVCNAME if you want to log to syslog instead. Make sure to comment/remove the start_pre() function if you do that.
1
0
1
0
User avatar
Norm (ノーム) CastoriceBlushing @norm@shrimp.biribiri.dev
4mo
@ezio but money
0
0
0
0
User avatar
Norm (ノーム) CastoriceBlushing @norm@shrimp.biribiri.dev
4mo
Morg
:elainawave@akko.wtf:1
0
0
1
1
User avatar
Norm (ノーム) CastoriceBlushing @norm@shrimp.biribiri.dev
4mo
looks like the move has also largely removed the random IO latency spikes every 5 mins I was noticing for the past while
0
0
0
0
User avatar
Norm (ノーム) CastoriceBlushing @norm@shrimp.biribiri.dev
4mo
@desea same
0
0
0
0
User avatar
Norm (ノーム) CastoriceBlushing @norm@shrimp.biribiri.dev
4mo
@izzy @ezio cool

any reason you aren't using crontab for scheduling those vacuums?
1
0
1
0
User avatar
Norm (ノーム) CastoriceBlushing @norm@shrimp.biribiri.dev
4mo
@izzy @ezio makes sense, I should try to do more regular vacuums on my instance as well
1
0
1
0
User avatar
Norm (ノーム) CastoriceBlushing @norm@shrimp.biribiri.dev
4mo
@ezio @izzy yeah I don't really do prunes that often, mostly do a manual one every month or so or when I notice the drive is getting somewhat full
1
0
1
0
User avatar
Norm (ノーム) CastoriceBlushing @norm@shrimp.biribiri.dev
4mo
updated service file to add postgresql dependency
0
0
0
0
User avatar
Norm (ノーム) CastoriceBlushing @norm@shrimp.biribiri.dev
4mo
for anyone who wants to do the same, here's my service file (/etc/init.d/iceshrimp):
#!/sbin/openrc-run
name="Iceshrimp.NET"
description="Iceshrimp.NET Fediverse server"

command="/usr/share/iceshrimp.net/Iceshrimp.Backend"
command_args="--migrate-and-start"
command_user="iceshrimp:iceshrimp"
command_background=true
directory=/usr/share/iceshrimp.net
pidfile="/run/${RC_SVCNAME}.pid"

depend() {
        need postgresql
}



(this assumes both user and group are called
iceshrimp)

and the environment variables (
/etc/conf.d/iceshrimp):
export ICESHRIMP_CONFIG="/etc/iceshrimp.net/configuration.ini"
export MALLOC_TRIM_THRESHOLD_=131072
2
0
0
0
User avatar
Norm (ノーム) CastoriceBlushing @norm@shrimp.biribiri.dev
4mo
@epsi yup
1
0
0
0
User avatar
Norm (ノーム) CastoriceBlushing @norm@shrimp.biribiri.dev
4mo
ok, just migrated this instance to an alpine VM, and it seems to be working!
1
0
2
0
User avatar
Norm (ノーム) CastoriceBlushing @norm@shrimp.biribiri.dev
4mo
test
2
0
3
0